Re: [R] Converting to XTS loses data.frame structure

2012-05-29 Thread R. Michael Weylandt
Hi Steven, I am the GSOC student in question and I think the best statement of work is probably this one here on the GSOC-R Wiki (as well as for the other projects): http://rwiki.sciviews.org/doku.php?id=developers:projects:gsoc2012:xts If you log into Google Melange, my project proposal should

Re: [R] Error message GSA package

2012-05-29 Thread ahess
Dear David, I know that this was posted, but I ran across the same error, so I thought it might be useful to respond. The reason this error occurs is because of the "minsize" setting used in GSA, which is 15 by default. Setting this to the number of genes in the set you are interested will fix t

Re: [R] Error message GSA package

2012-05-29 Thread ahess
Dear David, I know that you posted this quite a while ago, and you probably aren't interested anymore, but I thought it might be useful to answer this question because I came across the same problem. As you may have figured out, the error occurs because of the "minsize" argument, which is 15 by d

[R] R and igraph problems

2012-05-29 Thread jalantho...@verizon.net
I have R 2.15.0 running under Windows 7. I installed the igraph 0.5.4 package from a zip file. When I attempt to load igraph using "library(igraph)", I get the error package igraph is not installed for arch=x64.  When I repeat this using the 32-bit version of R, I get the same basic error but wi

Re: [R] as.function parameters

2012-05-29 Thread jackl
Hi there, ~ sry for the late answer.. and thanks for the advice. i'm using a different approach than the CRR model because i'm implementing a pricing algorithm for american options with transaction costs. i'm not sure if i should close this thread for now, because right now i'm trying to do a d

[R] a question about "by" and "ddply"

2012-05-29 Thread jacaranda tree
Hi all, I have a data set (df, n=10 for the sake of simplicity here) where I have two continuous variables (age and weight) and I also have a grouping variable (group, with two levels). I want to run correlations for each group separately (kind of similar to "split file" in SPSS). I've been expe

Re: [R] PROBLEMS with In `[<-.factor`(`*tmp*`, (¿ORDERED FACTOR?)

2012-05-29 Thread arun
HI, Do you want to replace the column ("level of education") with values or just add values as second column?  I guess you are looking for the latter. Try this, dat<-data.frame(Levelofeducation=rep(c("none","HighSchool","College"),c(3,3,3)),value=rep(c(0,1,2),c(3,3,3))) str(dat) data.frame': 

[R] Windows 7 installation issues

2012-05-29 Thread jalantho...@verizon.net
I installed R version 2.15.0 under C:/ on a PC running Windows 7.  When I load library("tools") to test the installation and then run the command testInstalledPackages("base"), I get the following error: Error in setwd(outDir): cannot change working directory. I have set up the R shortcut to r

Re: [R] Windows 7 installation issues

2012-05-29 Thread Henrik Bengtsson
You probably meant testInstalledPackage("base") without the 's', cf. help("testInstalledPackage", package="tools"). /Henri On Tue, May 29, 2012 at 4:18 PM, jalantho...@verizon.net wrote: > I installed R version 2.15.0 under C:/ on a PC running Windows 7.  When I > load library("tools") to tes

Re: [R] Windows 7 installation issues

2012-05-29 Thread Jeff Newmiller
a) Please read the Posting Guidelines mentioned at the bottom of every message. One rule is this is a plain text email list, so adjust your mail client to post text to this email list, not HTML. b) For best results, do not run R as administrator except to update base packages. R works fine usin

Re: [R] R and igraph problems

2012-05-29 Thread Jeff Newmiller
I get no error loading this package (cannot reproduce). I suggest you uninstall and reinstall R, and do not install or run as administrator (per your other email). If this does not solve your problem, please read the Posting Guide and follow it's recommendations to improve your odds of getting

Re: [R] a question about "by" and "ddply"

2012-05-29 Thread Jeff Newmiller
a) This is not reproducible (missing data). Please read the Posting Guide mentioned at the bottom of every message. b) You are abusing ddply. Read the help for ddply... the function you give it needs to return a data frame. You may want dlply instead, or you need to copy the atomic values from

Re: [R] a question about "by" and "ddply"

2012-05-29 Thread David Winsemius
On May 29, 2012, at 6:32 PM, jacaranda tree wrote: Hi all, I have a data set (df, n=10 for the sake of simplicity here) where I have two continuous variables (age and weight) and I also have a grouping variable (group, with two levels). I want to run correlations for each group separately

Re: [R] a question about "by" and "ddply"

2012-05-29 Thread R. Michael Weylandt
On Wed, May 30, 2012 at 12:58 AM, David Winsemius wrote: > > On May 29, 2012, at 6:32 PM, jacaranda tree wrote: > >> Hi all, >> I have a data set (df, n=10 for the sake of simplicity here) where I have >> two continuous variables (age and weight) and I also have a grouping >> variable (group, with

Re: [R] PROBLEMS with In `[<-.factor`(`*tmp*`, (¿ORDERED FACTOR?)

2012-05-29 Thread David Winsemius
On May 29, 2012, at 11:01 AM, RBB wrote: HI!!! I have a table containing qualitative and quantitative data; one of the columns contains "Level of education", and the possibilities are "none", "High school", "college"; I want to give the value 0 to "none", the value 1 to "High school",

Re: [R] importing multiple file form folder

2012-05-29 Thread David Winsemius
On May 29, 2012, at 10:56 AM, mpavlic wrote: Hi Sarah, I can not for the life of me understand what was wrong with my post?!? Can you please explain, so that i will not make the same mistake again? She asked you to read the Posting Guide. It _still_ appears you have not done so. Please

[R] Simple example for High performance computing with R?

2012-05-29 Thread Fabrice Tourre
Dear list, I want to run two independent calculation (A, B) and then combined their results to do a plot in R. Before I just run calculation A first, then calculation B. It will take some times. I just have one server with multiple core. I noticed that there are some nice package in R for parallel

[R] How to calculate correlation matrix for 128 * 12625 matrix

2012-05-29 Thread mahdi
In our dataset the samples/object are number of patients which is 128 and we are dealing with 12,625 genes which is our attributes of the dataset. So, it is obvious that if I calculate the correlation matrix of (128 * 12,625) the resulted dimension of the correlation matrix will be (12,625 * 12,625

Re: [R] Simple example for High performance computing with R?

2012-05-29 Thread Martin Morgan
On 05/29/2012 08:02 PM, Fabrice Tourre wrote: Dear list, I want to run two independent calculation (A, B) and then combined their results to do a plot in R. Before I just run calculation A first, then calculation B. It will take some times. I just have one server with multiple core. I noticed th

Re: [R] strucchange Fstats() example

2012-05-29 Thread Achim Zeileis
On Tue, 29 May 2012, Mabille, Geraldine wrote: In the second example, the authors state the presence of "at least" two breakpoints. When plotting the F-statistics using the following code, we see indeed two peaks in the F-statistics, that coincides with the dates given by the authors: c.a 19

Re: [R] importing multiple file form folder

2012-05-29 Thread mpavlic
Hi Jim, thanks for that, works perfectly. m -- View this message in context: http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4631798.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mai

<    1   2