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

2021-06-08 Thread Allen, Justin
ut the 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, H

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

2021-05-27 Thread Allen, Justin
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
for being pedantic --- but doing so to point out how helpful the "?" command can be sometimes. Hope this helps. __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com LinkedIn Profile: www.linkedin.com/pub/allen-bingham/3b/556/325 -

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

2015-02-10 Thread Allen Bingham
ession --- you have 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

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

2015-02-10 Thread Allen Bingham
--- I 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, Februar

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

2015-02-09 Thread Allen Bingham
uot;signif" function on page 61 ... but don't list 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

Re: [R] censored quantile regression

2015-02-06 Thread Allen Bingham
function are only used with a subset of the method values. Hope this helps-Allen __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com This message and any attachments may contain confidential or privileged information and are only for the

Re: [R] pch size in a legend

2015-01-31 Thread Allen Bingham
Legend 2, symbol 2 with pt.cex=1.75",legend=c("Item 1","Item 2"),pch=c(1,1),pt.cex=c(1,1.75),col=c('black','blue')) see if that works for you? __ Allen Bingham Bingham Statistical Consulting aebingh...@gmail.com ---

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 -Ori

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

2015-01-26 Thread Allen Bingham
Templer is appealing in its simplicity. 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 p

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

2015-01-25 Thread Allen Bingham
e R ... or in a package that will better mimic the SAS sum function. Any suggestions? Thanks. __ Allen Bingham aebingh...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz

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

2013-09-12 Thread Allen, Joel
xa', .fun=transform, Class=find.class(Taxa)) Joel From: Beaulieu, Jake Sent: Thursday, September 12, 2013 12:06 PM To: r-help@r-project.org Cc: Wahman, David; Farrar, David; Allen, Joel; Green, Hyatt; McManus, Michael Subject: grep(pattern = each element of a vector) ? Hi, I h

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 To: grond , r-help@r-project.org Date: 09/13/2012 04:46 PM Subject: Re: [R] Missing Values Don't give it any. Instead of banks$two, use na.omit

[R] SEM standardized path coefficients

2012-08-03 Thread Hurlbert, Allen Hartley
sem1 = sem(sem.mod, sem.mod.cov, N=29) stdCoef(sem1) n2S n2S0.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. Depa

[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, vdate>2011-01-01|vdate<2011-07-01) or all data is excluded six_months<-subset(Two_years, vdate>2011-01-01

Re: [R] Options for generating editable figures?

2012-01-04 Thread Allen McBride
and characters 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 the

[R] Options for generating editable figures?

2012-01-02 Thread Allen McBride
m I on the right track? Am I missing any 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

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 wrote: > Hi Allen and list, > > See the code below. I've tried it on R2.13 and R2.8.0 using either &g

[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", run.past.conver

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

2011-04-01 Thread Pam Allen
51A8B","#43CD80")) I would also be happy if I could do this with a cloud plot, 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 m

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 think

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 <- z

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 flow

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

2011-03-24 Thread Pamela Allen
using this code: data.ts=ts(data$flow, start=c(data$year[1], data$julianday[1]), frequency=365) 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 Pa

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

2011-03-24 Thread Pamela Allen
ode: data.ts=ts(data$flow, start=c(data$year[1], data$julianday[1]), frequency=365) 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,

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

2011-03-17 Thread Pamela Allen
plot(data$date[data$levels=="high"], data$flow[data$levels=="high"], col="red", type="l") lines(data$date[data$levels=="med"], data$flow[data$levels=="med"], col="green", type="l") lines(

Re: [R] Fitting ELISA measurements

2011-02-01 Thread Allen Liu
of your data. You can email me at aliu at miraibio dot com and I would more than happy to do some data analysis with you. In addition, here is a blog post that I have written a while back for some tips on ELISA data analysis: http://www.miraibio.com/blog/2009/06/tips-for-data-analysis/ I

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

[R] Patch submission / request.

2010-04-23 Thread Allen S. Rout
oing this too". The second patch includes the functionality of the first. Currently, I'm using 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 cod

[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 me

Re: [R] two questions for R beginners

2010-02-26 Thread Allen S. Rout
e of the larger 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] 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
numeric(dd.p[,5:12])) >Error in inherits(x, "data.frame") : (list) object cannot 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:

[R] reading heterogeneous CSV

2009-08-11 Thread Allen S. Rout
1,handle=I("")) temps["",] = fifo("./",open="w+") showConnections() ( 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

[R] Test Set Deviances

2009-03-11 Thread Thomas Allen
test 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

[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 https://stat.ethz.ch/mailman/listinfo/r-help

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 co

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

2008-06-18 Thread Thomas Allen
diagnostic information. Is this actually possible? I don't really like the idea of rewriting the "cat" function and creating output for stdout from stderr using "kludges" like: > options(error=function(x=geterrmessage()){cat(x)}) Thank you for any help and ple

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

2008-04-02 Thread Allen S. Rout
ollars. http://docs.osg.ufl.edu/tsm/current/ext/UFEXCH-MBX01.AD.UFL.EDU-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] Error using augPred with nlme grouped data

2008-03-23 Thread Pamela Allen
33 rows, data has 12 I'm guessing this has something to do with my grouping factor "name", since there are 12 levels (animals) in this column. The only help file I could find about this problem suggested that I give all of my data columns the class "NULL" and then re-run my

[R] Strange paste, string or package problem?

2008-03-03 Thread Thomas Allen
" -a ",1," -a ",1," -a ",1,sep="") cat(cmd,"\n") } Step 2) Start R again. Load the package with library() and run the commands: error() noerror() I get the following output: > > library(errors) > error() -a 1 -a 1 -a 1 -a 1

[R] RAM Filling up

2008-02-29 Thread Thomas Allen
memory release (or am I blind?) What I'm really asking is what are some really informative memory management tools for observing and controlling memory usage in R on a unix based system? Kind regards Tom -- Thomas Allen Department of Biochemistry University of Otago email1: [EMAIL PROTEC

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

2008-02-12 Thread Allen S. Rout
)) and I've had a problem similar 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-

[R] Memory allocation problem with large dataset

2008-02-11 Thread Pamela Allen
rror message on both computers. I cannot split up the data into smaller pieces to make this function work, as I need all of the data to produce a proper growth curve, although I have reduced the data to 2,000 to test vanfemfit2, and it did work. Any advice would b

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

2008-02-11 Thread Allen S. Rout
strate some comprehension gained.. ;) the subsetting 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

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

2008-02-08 Thread Allen S. Rout
ading through the indexing and data.frame docs, and remain unsatisfied so far. Where is my 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

[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] 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-help@r-proj

[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. M

[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 ha