[R] noob requesting help

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Sun Jun 17 02:52:09 CEST 2012



On Jun 16, 2012, at 1:56 PM, capital_P <petervw48 at hotmail.com> wrote:

> 
> David Winsemius wrote
>> 
>>> Try
>>> 
>>> dat2 <- data.frame(do.call(cbind, dat), stringsAsFactors=FALSE)
>> 
>> Use instead:
>> 
>> dat2 <- data.frame( dat, stringsAsFactors=FALSE)
>> 
> 
> Both do not seem to work:
> 
>> dat2 <- data.frame(do.call(cbind, dat), stringsAsFactors=FALSE)
> Error: cannot allocate vector of size 136 Kb
> In addition: Warning messages:
> 1: In function (..., deparse.level = 1)  :
>  number of rows of result is not a multiple of vector length (arg 3)
> 2: In structure(list(message = as.character(message), call = call),  :
>  Reached total allocation of 2047Mb: see help(memory.size)
> 3: In structure(list(message = as.character(message), call = call),  :
>  Reached total allocation of 2047Mb: see help(memory.size)
> 
> 
> 
>> dat2 <- data.frame(dat, stringsAsFactors == FALSE)
> Error in data.frame(dat, stringsAsFactors == FALSE) : 
>  object 'stringsAsFactors' not found
> 

Haven't been following the thread, but only one equals here to set the argument. Double tells R to check for a variable calls stringsAsFactors. 

M

> I do feel like this is going in the right direction. Thanks for your help so
> far.
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/noob-requesting-help-tp4632803p4633607.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list