[R] Error: cannot allocate vector of size x Gb (64-bit ... yet again)

2010-11-23 Thread derek eder
.7 606849099 4629.9 550124408 4197.2 > matrix(x, ncol=16) Error: cannot allocate vector of size 3.7 Gb I don't understand how this operation violates the limits detailed in the Memory-limit help (above). Thank you! Derek Eder -

[R] calculating "treatment effects" (differences) in a data frame?

2010-05-24 Thread derek eder
I am overlooking a very simple function, something along the lines of tapply(). Thank you for you attention! Derek Eder ## Examples: myData = data.frame( ID = c("a","a","b","c","c","d","d"), visit=c(1,2,1,1,2,1,2), sco

[R] Saving interactive modified latttice plots?

2009-11-30 Thread Derek Eder
The lattice function panel.identify() allows the labeling of mouse-selected plot points. But ... how does one save the resulting plot? E.g., to png() or pdf() Thank you! # example code library(lattice) xyplot(rnorm(10,0,1)~rnorm(10,0,1)) trellis.focus() # left click on plot panel to select

[R] Converting from "date strings" to internal POSIX format?

2009-09-03 Thread Derek Eder
I need to convert a date-style string: "2009-06-16 09:28:17.746" To its POSIX representation: 1245137297746 The function below converts my POSIX date to a string ... now I need to go backwards! render.t32 <- function(t32, tz = "CET") { timez <- ISOdatetime(1970,1,1,0,0,0, tz ="UTC")+t32/

[R] interactive file choosing in Linux?

2009-05-26 Thread Derek Eder
;text input prompt". This does not seem correct. > file.choose() Enter file name: I have seen gfile() function in the gWidgets library - but isn't there anything native? Thank you! Derek Eder Linux: Ubuntu 9.04, Gnome, [R] running in terminal or ESS