[R] vector replacement 1/0 to P/A

2009-08-18 Thread Lana Schaffer
Hi, Can someone suggest an efficient way to substitute a vector/matrix which contains 1's and 0's to P's and A's (resp.)? Thanks, Lana __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

[R] saving loess fit

2009-06-11 Thread Lana Schaffer
Hi, pv.lo <- loess(Affy ~ DABG, DA, span=0.2, degree=2, family="symmetric") I would like to know how to save the output from the loess fit so that I can read it again into another session of R. Can someone help me figure this out? Lana Schaffer Biostatistics/Informatics The Scr

[R] Error with "make" with R-devel

2009-02-17 Thread Lana Schaffer
ror 1 >make[4]: Leaving directory >`/lustre/people/schaffer/R-devel/src/library/base' >make[3]: *** [all] Error 2 Is there someone who can modify the Makefile so that I am able to compile R-devel? Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Co

Re: [R] error with make

2009-02-13 Thread Lana Schaffer
Peter, Isn't there a different form of cp that I can use? cp -p cp Lana -Original Message- From: Peter Dalgaard [mailto:p.dalga...@biostat.ku.dk] Sent: Friday, February 13, 2009 1:21 PM To: Lana Schaffer Cc: r-help@r-project.org Subject: Re: [R] error with make Lana Schaffer

[R] error with make

2009-02-13 Thread Lana Schaffer
make[2]: *** [Rmath.h] Error 1 make[2]: Leaving directory `/lustre/people/schaffer/R-devel/src/include' make[1]: *** [R] Error 1 make[1]: Leaving directory `/lustre/people/schaffer/R-devel/src' make: *** [R] Error 1 Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA

[R] subset function within a function

2008-07-03 Thread Lana Schaffer
1:nLev) LIS[[i]]<- lapply(LI, subset, select=cov[[i]]) Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Core Facility La Jolla, CA 92037 (858) 784-2263 (858) 784-2994 [EMAIL PROTECTED] __ R-help@r-project.org mailing lis

[R] adding a package in Windows

2008-07-01 Thread Lana Schaffer
Hi, I am using version R2.7.0 and I have installed Rtools27.exe. Upon calling R CMD INSTALL I got this error: .../src/gnuwin32/MakePkg:1: missing separator Can someone tell me what is wrong? Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Core Facility La Jolla

[R] converting numbers to characters

2008-06-27 Thread Lana Schaffer
Hi, I need to convert numbers to characters in order to index an array when I encountered the number 10 which turned into "1e+05". Does anyone know how to get around this problem? Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Core Facility La

[R] converting numbers to characters

2008-06-27 Thread Lana Schaffer
Hi, I need to convert numbers to characters in order to index an array when I encountered the number 10 which turned into "1e+05". Does anyone know how to get around this problem? Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Core Facility La

Re: [R] alternative to matching/merge?

2008-06-17 Thread Lana Schaffer
] Sent: Monday, June 16, 2008 5:24 PM To: Lana Schaffer Cc: hadley wickham; r-help@r-project.org Subject: Re: [R] alternative to matching/merge? Is this what you tried: > x <- data.frame(a=1:10, b=1:10) > x <- data.frame(a=1:3, b=1:3) > do.call(rbind, list(x,x,x,x,x)) a b 1 1 1 2

Re: [R] alternative to matching/merge?

2008-06-16 Thread Lana Schaffer
Jim, Is it possible to do a do.call(rbind,d.frame) with a list like using lapply(data,func,args)? I have not successfully executed this. Lana -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 2:54 PM To: jim holtman Cc: Lana Schaffer; r-help@r

Re: [R] alternative to matching/merge?

2008-06-13 Thread Lana Schaffer
From: jim holtman [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 9:45 AM To: Lana Schaffer Cc: r-help@r-project.org Subject: Re: [R] alternative to matching/merge? What is the structure of 'd.frame' and 'segFile'? Run Rprof so that we can see which of the functions it

Re: [R] alternative to matching/merge?

2008-06-13 Thread Lana Schaffer
kes ~4 minutes. Thanks, Lana -Original Message- From: jim holtman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 6:40 PM To: Lana Schaffer Cc: r-help@r-project.org Subject: Re: [R] alternative to matching/merge? It would be nice if you at least included the code that you are using

[R] alternative to matching/merge?

2008-06-12 Thread Lana Schaffer
efficient? Lana Schaffer Biostatistics/Informatics The Scripps Research Institute DNA Array Core Facility La Jolla, CA 92037 (858) 784-2263 (858) 784-2994 [EMAIL PROTECTED] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help