[R] Error when I attempt to create a list or a data frame

Michael Pomeroy javamon at mindspring.com
Fri Feb 13 18:15:31 CET 2015


When I try to create a list with three classes of objects:  a numeric, 
boolean, and vector of character data:
lst <- list(c(1,2),TRUE,c(“a”,“b”,“c”))

I receive this error:
Error: unexpected input in "lst <- list(c(1,2),TRUE,c(“"

I receive a similar error when I create a data frame with mixed classes 
of objects.

Thanks ahead of time!



More information about the R-help mailing list