[R] memory location of object?

2011-01-10 Thread maddox
Hi, I haven't found a way to display the memory location of an object in R. Is there one? (I want to see whether some code 'grows' an object, and an ever-changing memory location for the object would presumably confirm this) Thanks m -- View this message in context: http://r.789695.n4.nabble

[R] speed issues? read R_inferno by Patrick Burns: & a memory query

2010-12-23 Thread maddox
Hi, I'm just starting out with R and came across R_inferno.pdf by Patrick Burns just yesterday - I recommend it! His description of how 'growing' objects (e.g. obj <- c(obj, additionalValue) eats up memory prompted me to rewrite a function (which made such calls ~210 times) so that it used index

Re: [R] vectorised recovery of strsplit value ??

2010-12-23 Thread maddox
Thanks Jorge, for your reply. In the end I changed my approach and used a sub() strategy I found on this forum to recover the prefixes as below. IDs.prefix <- sub("([^*])(_.*)", "\\1" , sampleIDs ) IDs.split <- cbind(sampleIDs , IDs.prefix) Regards M -- View this message in context: http://r.

Re: [R] recovering names of factor levels ??

2010-12-23 Thread maddox
Thanks Peter, for your succinctly helpful reply The way R works is still a learning experience for me. I hope I'll be asking fewer of these type of questions as I get to grips with R. In the meantime, thanks for the help (and patience) regards M -- View this message in context: http://r.78969

[R] recovering names of factor levels ??

2010-12-22 Thread maddox
Hi, I have a factor with 3 levels. I'd like to recover the names of each level so I can use them to search through another data structure. Is this possible? Thanks M -- View this message in context: http://r.789695.n4.nabble.com/recovering-names-of-factor-levels-tp3161388p3161388.html Sent fr

Re: [R] vectorised recovery of strsplit value ?? Resolved

2010-12-22 Thread maddox
-- View this message in context: http://r.789695.n4.nabble.com/vectorised-recovery-of-strsplit-value-tp3161254p3161389.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

[R] vectorised recovery of strsplit value ??

2010-12-22 Thread maddox
Dear Guru's My first steps with R have ground to a halt! I have a vector of sample identifiers > sampleIDs [1] "D1_1" "D1_2" "D1_3" "D1_4" "D1_5" "D1_6" "D1_7" "D1_8" [9] "D1_9" "D1_10" "D1_11" "D1_12" "F1_13" "F1_14" "F1_15" "F1_16" [17] "F1_17" "F1_18" "F1_19" "F1