Re: [R] foreign package read.spss() and NA levels

2021-06-08 Thread Allen, Justin
he problem was in the dataset as I said. Many Thanks, Justin Justin Allen Housing Consultant, BRE<https://bregroup.com/> T: 07807122647 From: Uwe Ligges Sent: 04 June 2021 10:57 To: Allen, Justin ; R-help@r-project.org Cc: Whiteley, Jonathon ; Foster, Helen Subject:

[R] foreign package read.spss() and NA levels

2021-05-27 Thread Allen, Justin
a few months ago. None of the arguments in read.spss() seem to also stop this behaviour. I am currently on the most recent version of both R and the package, as of 27/05/21, and am using RStudio Version 1.4.1106. Any thoughts? Many Thanks, Justin Allen p.s. your continued maintenance and additions to

Re: [R] difference between max in summary table and max function

2015-02-13 Thread Allen Bingham
be sometimes. Hope this helps. __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com LinkedIn Profile: www.linkedin.com/pub/allen-bingham/3b/556/325 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Martyn

Re: [R] SAS equivalent for R's signif function?

2015-02-10 Thread Allen Bingham
don't want to use code in R that might be too difficult to replicate in SAS. I'll send you a separate email about the PROC FCMP implementation you mentioned. Thanks again-Allen -Original Message- From: Daniel Nordlund [mailto:djnordl...@frontier.com] Sent: Monday, February 9, 2015 11:05

Re: [R] Error: OutOfMemoryError (Java): GC overhead limit exceeded

2015-02-10 Thread Allen Bingham
to quit R first then re-issue with a larger number. Good luck-Allen __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com LinkedIn Profile: www.linkedin.com/pub/allen-bingham/3b/556/325 -Original Message- From: R-help [mailto:r-help-boun

[R] SAS equivalent for R's signif function?

2015-02-09 Thread Allen Bingham
a SAS equivalent. If you have a suggestion for a different list that I might ask this question (assuming I don't get the answer here), provide that as well. Thanks-Allen __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com LinkedIn Profile

Re: [R] censored quantile regression

2015-02-06 Thread Allen Bingham
of the other fitting methods is appropriate to your analyses. Regardless it seems to me (IMHO) that the documentation for the crq function should indicate that the tau or alternatively the taus supplied to the crq function are only used with a subset of the method values. Hope this helps-Allen

Re: [R] pch size in a legend

2015-01-31 Thread Allen Bingham
if that works for you? __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com -Original Message- From: Ahmed Attia [mailto:ahmedati...@gmail.com] Sent: Friday, January 30, 2015 1:50 PM To: r-help Subject: [R] pch size in a legend Hi R users, I

Re: [R] Sum function and missing values --- need to mimic SAS sum function

2015-01-26 Thread Allen Bingham
Sven and John, Thanks for your suggested code ... hits the mark! The code by John is what I need to be able to use in an apply function, but I really like the simplicity of Sven's suggestion. Also thanks to all who replied --- really helped broaden my knowledge of R. Allen -Original

Re: [R] Sum function and missing values --- need to mimic SAS sum function

2015-01-26 Thread Allen Bingham
. Allen -Original Message- From: MacQueen, Don [mailto:macque...@llnl.gov] Sent: Monday, January 26, 2015 1:03 PM To: Allen Bingham; r-help@r-project.org Subject: Re: [R] Sum function and missing values --- need to mimic SAS sum function I'm a little puzzled by the assertion that the result

[R] Sum function and missing values --- need to mimic SAS sum function

2015-01-25 Thread Allen Bingham
? Thanks. __ Allen Bingham aebingh...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] grep(pattern = each element of a vector) ?

2013-09-12 Thread Allen, Joel
-project.org Cc: Wahman, David; Farrar, David; Allen, Joel; Green, Hyatt; McManus, Michael Subject: grep(pattern = each element of a vector) ? Hi, I have a large dataframe that contains species names. I have a second dataframe that contains species names and some additional info, called 'Class

Re: [R] Missing Values

2012-09-13 Thread Allen C Gellis
thank you for the help So will the entire syntax appear as bootmean(na.omit(banks$two),na.rm = TRUE, conf = 90,nrep = 1000) From: Jeff Newmiller jdnew...@dcn.davis.ca.us To: grond agel...@usgs.gov, r-help@r-project.org Date: 09/13/2012 04:46 PM Subject: Re: [R] Missing Values Don't give

[R] SEM standardized path coefficients

2012-08-03 Thread Hurlbert, Allen Hartley
0.97643950 All.S --- NDVI n2n n2n1. NDVI -- NDVI s2S s2S0.04656591 All.S -- All.S I am using version 3.0 of sem on R-14.0. Thanks for any insight anyone can provide. Allen Hurlbert, Ph.D. Department of Biology University of North Carolina Chapel Hill, NC 27599-3280 Tel

[R] Subset based on a date range

2012-05-19 Thread Allen
Hello, Can someone help me on how to make a subset of my dataframe using two dates. This is what I have tried, but no data is being excluded in the new frame. six_months-subset(Two_years, vdate2011-01-01|vdate2011-07-01) or all data is excluded six_months-subset(Two_years,

Re: [R] Options for generating editable figures?

2012-01-04 Thread Allen McBride
pretty bad.) Thanks, --Allen On 1/3/12 12:47 PM, Greg Snow wrote: I have had clients who also wanted to make little changes to the graphs (mostly changing colors or line widths). Most after doing this a couple of times have been happy to give be better descriptions of what they want so I can

[R] Options for generating editable figures?

2012-01-02 Thread Allen McBride
better pathways? I know similar questions have come up before, but the discussions I found in the archives were old, and maybe things have changed in recent years. Thanks for any advice! --Allen McBride R version: 2.13.1 Platform: Mac OS 10.7.2 __ R

Re: [R] a bug in heatmap.plus?

2011-06-09 Thread Allen Day, PhD
No idea, and no time to debug this unfortunately. I'd like to hand off maintenance of this package if anyone is using it. -Allen On Wed, Jun 8, 2011 at 9:50 PM, Shi, Tao shida...@yahoo.com wrote: Hi Allen and list, See the code below. I've tried it on R2.13 and R2.8.0 using either

[R] MI help

2011-05-16 Thread Allen, Summer
Hi, I am trying to do multiple imputation on a panel of data and then, use the imputed values in stochastic frontier analysis. I am using this code just as a start to see if will run: mi(countrydata, n.iter = 30, R.hat = 1.1, max.minutes = 20, rand.imp.method = bootstrap,

[R] Lattice wireframe or cloud plot with different colours by a group

2011-04-01 Thread Pam Allen
, but I can't get the colors to plot correctly. cloud(flow~day*year, data=flow.dat, shade=T, groups=grp, col.group=c(#FF3030,#43CD80,#1E90FF), pch=20) Any help is much appreciated! Thank you. -Pam Allen allen_...@hotmail.com -- View this message in context: http://r.789695.n4.nabble.com/Lattice

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-28 Thread Pam Allen
Thank you Jim and David for your help. The 'levels' call is not a misdirection, in my actual dataset it is necessary because the flows aren't symmetrical. So while your solution is quite elegant David, it doesn't apply to my actual data, just the example. Too bad, it's quite nice! I do

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread Pam Allen
Hello Baptiste and others, I tried your example with my dataset, and for a few days I thought it worked for me. But I realized yesterday that the result wasn't quite what I hoped for. In my actual data the flows aren't perfectly sinusoidal, and I used a series of ifelse queries to code the

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread Pam Allen
Hello again, I wrote an example that better represents my data, since the coloured points are actually consecutive, but with variable lengths: date=as.Date(c(1:300)) flow=sin(2*pi/53*c(1:300)) levels=c(rep(c(high,med,low),100)) data=cbind.data.frame(date, flow, levels) library(zoo) z -

[R] Help with creating a ts (time series) object with daily sampling values

2011-03-24 Thread Pamela Allen
) Which does work, but I worry about the influence of leap years, since my data set is quite large. What is the way to properly code a ts object with daily measurements? Thank you! -Pam Pam Allen Vancouver, BC [[alternative HTML version

[R] Help with creating a ts (time series) object with daily sampling values

2011-03-24 Thread Pamela Allen
does work, but I worry about the influence of leap years, since my data set is quite large. What is the way to properly code a ts object with daily measurements? Thank you! -Pam Pam Allen Vancouver, BC __ R-help@r-project.org mailing list https

[R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread Pamela Allen
$levels==low], data$flow[data$levels==low], col=blue, type=l) But the line fills in data gaps, so this doesn't work. Any help would be much appreciated! Thank you. -Pam Allen pal...@hatfieldgroup.com __ R-help@r-project.org mailing

Re: [R] Fitting ELISA measurements

2011-02-01 Thread Allen Liu
analysis: http://www.miraibio.com/blog/2009/06/tips-for-data-analysis/ I hope this helps. Best Regards, Allen Liu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] Patch submission / request.

2010-04-23 Thread Allen S. Rout
a copied-and-pasted version of getDependencies, with my hacks in place and some moderately evil namespace traipsing to get at the rest of the utilities. I would much rather make use of the code in situ. - Allen S. Rout *** getDependencies.R.orig 2010-04-23 14:43:53.361078503 -0400

Re: [R] Patch submission / request.

2010-04-23 Thread Allen S. Rout
a...@ufl.edu (Allen S. Rout) writes: Greetings. [ ... ] D'oh, that was supposed to be aimed at R-devel. - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] two questions for R beginners

2010-02-26 Thread Allen S. Rout
challenge of transforming R data structures. A somewhat pedantic set of recipes might usefully be evolved on e.g. the wiki. - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Working directories... Again

2010-02-26 Thread Allen L
Dear R forum, I've looked many places for this and figure there must be an easy way to implement. I want to set the working directory in my script to the place where the R code is located. Something like: setwd(directory where this script is found). Thanks! -Allen -- View this message

[R] Lyapunov matrix equation

2010-01-06 Thread Allen L
Dear R forumers, Wondering if anyone knows of a package that can solve the lyapunov matrix equation C=ACA^T + B in R? Currently I am exporting to Mathematica, solving and bringing the results back in, but this is not ideal. Can R do this? Thanks in advance, Allen -- View this message in context

[R] Class attributes

2009-12-04 Thread Allen L
be coerced to type 'double' I'm tried unclassing reclassing, other functions etc. but nothing seems to work. What is wrong? Thanks in advance, Allen -- View this message in context: http://n4.nabble.com/Class-attributes-tp948693p948693.html Sent from the R help mailing list archive at Nabble.com

[R] reading heterogeneous CSV

2009-08-11 Thread Allen S. Rout
() ( you can see that the connection is open) temps ( you can see that the contents of the data.frame cell is the filehandle number) - Am I just barking up the wrong tree? - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Test Set Deviances

2009-03-11 Thread Thomas Allen
set? Cheers Tom -- Thomas Allen Department of Biochemistry University of Otago 710 Cumberland street Box 56 Dunedin New Zealand Work: (+64)3 479 5123 Mobile: 027 321 4269 email1: hed...@gmail.com email2: allth...@student.otago.ac.nz Only the insane have strength enough to prosper and only

[R] Graph Edit Distance

2009-02-12 Thread Thomas Allen
Dear R Users I'm trying to acquire a metric for how similar two graphs are by doing inexact graph matching. I heard that the Graph Edit Distance is one such metric. Do you know of any R packages (off the top of your head) that implement an algorithm for calculating this from a pair of adjacency

[R] help

2009-01-22 Thread allen lou
hi everyone, Please help me to calculate copula in R . I already have the data but I don't know how to manipulate it..please do reply...I really need your help. __ R-help@r-project.org mailing list

Re: [R] using virtual memory in R (Tom Allen)

2009-01-18 Thread Thomas Allen
hi are you using a 64bit system? 32 bit systems can only allocate about 3GB to a single process. http://msdn.microsoft.com/en-gb/library/aa366778.aspx I used to use 32bit winXP, then moved to 64bit Ubuntu8.04 to solve my memory problems. if you are 64bit, you should try playing around with the

[R] Appending diagnostic information to all lines sent to stdout and stderr

2008-06-19 Thread Thomas Allen
output for stdout from stderr using kludges like: options(error=function(x=geterrmessage()){cat(x)}) Thank you for any help and please ask me to explain my situation in more detail if necessary -- Thomas Allen Department of Biochemistry University of Otago 710 Cumberland street Box 56 Dunedin

Re: [R] Thinking about using two y-scales on your plot?

2008-04-02 Thread Allen S. Rout
-all.html So the blue series corresponds to tbe blue dollars scale (and bytes) and the green and red points correspond to the green scale (and bytes). Am I being naughty? - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Error using augPred with nlme grouped data

2008-03-23 Thread Pamela Allen
file I could find about this problem suggested that I give all of my data columns the class NULL and then re-run my nlme, but this did not work. Any help would be much appreciated! -Pam Pamela Allen, MSc Candidate University of British Columbia Marine Mammal Research Unit, Fisheries Centre

[R] Strange paste, string or package problem?

2008-03-03 Thread Thomas Allen
-a 1 -a 1 -a 1 -a 1 -a 1 -a 1 -a 1 -a 1 Now why does that e28093 replace one of the - in the first command? Any ideas? Cheers Tom -- Thomas Allen Department of Biochemistry University of Otago email1: [EMAIL PROTECTED] email2: [EMAIL PROTECTED] Work: (+64)3 479 5123 Mobile: 027 321 4269

Re: [R] When I cbind the POSIXct gets lost

2008-02-12 Thread Allen S. Rout
to the Original Poster, resulting in some ugly reordering, so I do the as.POSIXct _after_ the data.frame(cbind()) - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Subsetting a data.frame degenerates at one column?

2008-02-11 Thread Allen S. Rout
operations on data frames, by default, use the most basic data type capable of representing the answer. Either the drop=FALSE or the inputs[targets] solution give me the result I had in mind. I mildly prefer the [targets] statement from a visual perspective. - Allen S. Rout

[R] Subsetting a data.frame degenerates at one column?

2008-02-08 Thread Allen S. Rout
thinking going wrong? - Allen S. Rout __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] File based configuration

2007-12-05 Thread Thomas Allen
I'm wanting to run R scripts non-interactively as part of a technology independent framework. I want control over the behaviour of these processes by specifying various global variables in a configuration file that would be passed as a command line argument. I'm wondering if you know of any R

[R] array() misfeature

2007-12-02 Thread Allen McIntosh
Version: 2.5.1 array() is inconsistent when given non-integral dimensions: zz - array(0,dim=c(4,3.01)) dim(zz) [1] 4 3 zz - array(0,dim=c(201,4.05)) Error in dim(data) - dim : dim- : dims [product 804] do not match the length of object [814] [IMHO the code that did this is broken. My copy

[R] persp() misfeature

2007-12-02 Thread Allen McIntosh
Version: Observed in 2.5.1 x - 1:10 y - 1 z - array(1:10,dim=c(10,1)) persp(x,y,z) Error in persp(x, y, z, xlim, ylim, zlim, theta, phi, r, d, scale, expand, : invalid 'x' argument The problem isn't 'x'. It's 'y'. __

[R] Strange behavior with time-series x-axis

2007-10-25 Thread Allen McIntosh
I recently called plot(x,y) where x was an array of POSIXct timestamps, and was pleasantly surprised that it produced a nice plot right out of the box: z - as.POSIXct(c(2006-10-26 08:00:00 EDT,2007-10-25 12:00:00 EDT)) x - seq(z[1],z[2],len=100) y - 1:100 plot(x,y,type=l) The X axis had nice