[R] Unusual separators

2011-08-16 Thread Matt Curcio
something like 'only one byte separators can be used. I have thought about using a gsub to 'swap out' the "space + tab" and replace it with commas, etc but thought there might be another way. Any suggestions? M -- Matt Curcio M: 401-3

[R] reshape::rename package unable to install !?!

2011-08-07 Thread Matt Curcio
BUT when I tried to reinstall 'reshape' or 'reshape2' I COULDN't. Is there a way to get over this hurdle with reshape or is there another command I can use. I am stuck because my programs up to this point used 'rename' and now I have to redo some work. M --

[R] Which is more efficient?

2011-08-04 Thread Matt Curcio
olB, var.equal=TRUE) tt_pvalue [ i ] <- ttr$p.value } } } I am a novice writer of code and am interested to hear if there are any (dis)advantages to one way or the other. M Matt Curcio M: 401-316-5358 E: matt.curcio...@gmail.com

[R] Error message for MCC

2011-08-03 Thread Matt Curcio
row=numrows, ncol=vl) +colA <- temp[,compareA] +colB <- temp[,compareB] +tt <- t.test(colA, colB, var.equal=TRUE) +tt_pvalue <- tt$p.value + } Error in temp[, compareA] : incorrect number of dimensions -- Matt Curcio M: 401-316-5358 E: matt.curcio...@gmail.com __

[R] Errors, driving me nuts

2011-08-01 Thread Matt Curcio
# I tried setting up a vector... # as.vector(tt_pvalue, mode="any") ### but NO GO > file.name = paste("ttest.results.", compareA, compareB, "") > setwd(save_to) > write.table(tt_pvalue, file=file.name, sep="\t" ) Error in inherits(x, "da

Re: [R] Use dump or write? or what?

2011-08-01 Thread Matt Curcio
Research." So it seems that 'save/load' might be a good alternative for my work. Any suggestions, M On Sun, Jul 31, 2011 at 11:41 PM, Matt Curcio wrote: > Greetings all, > I am calculating two t-test values for each of many files then save it > to file calculate another

[R] Use dump or write? or what?

2011-07-31 Thread Matt Curcio
st_results, two_sample_ttest) Any suggestions, M -- Matt Curcio M: 401-316-5358 E: matt.curcio...@gmail.com __ 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/postin

Re: [R] Appending 4 Digits On A File Name

2011-07-31 Thread Matt Curcio
Michael, Got it, thanks. Looking over the man file realized it is FLAG not flat. Cheers, M On Sun, Jul 31, 2011 at 2:26 PM, Matt Curcio wrote: > Hmmm... > Got this error > > Error in formatC(i, width = 4, format = "d", flat = "0") : >  unused argument(s) (fl

Re: [R] Appending 4 Digits On A File Name

2011-07-31 Thread Matt Curcio
Hmmm... Got this error Error in formatC(i, width = 4, format = "d", flat = "0") : unused argument(s) (flat = "0") Any ideas, M On Sun, Jul 31, 2011 at 1:30 PM, Matt Curcio wrote: > Greetings all, > I would like to append a 4 digit number suffix to the name

[R] Appending 4 Digits On A File Name

2011-07-31 Thread Matt Curcio
le.name <- paste ("kegg.subrichcdt.", i, ".txt", sep="") write.table(temp, file=file.name) } ### But I want: "kegg.subrichcdt.0001.txt" "kegg.subrichcdt.0002.txt", ... Any suggestions M -- Matt Curcio M: 401-316-5358 E: matt.curcio.

[R] Movie Question

2011-01-22 Thread Matt Curcio
that this would be a great little project. Cheers, M Matt Curcio E: matt.curcio...@gmail.com __ 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

[R] Data.frame Vs Matrix Vs Array: Definitions Please

2010-10-26 Thread Matt Curcio
Hi All, I am learning R and having a little trouble with the usage and proper definitions of data.frames vs. matrix vs vectors. I have read many R tutorials, and looked over ump-teen 'cheat' sheets and have found that no one has articulated a really good definition of the differences between 'data.

[R] read.xls??

2010-10-09 Thread Matt Curcio
Greeting all, I am having a little trouble finding the 'right' package that will read in .xls Excel spreadsheets. My Ubuntu base does not seem to have the ability to read them. Any suggestions? Cheers, M __ R-help@r-project.org mailing list https://stat