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

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Feb 14 09:14:15 CET 2015



On 13.02.2015 18:15, Michael Pomeroy wrote:
>
> 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(“"

Do not use directed quotes.

Best,
Uwe Ligges

>
> I receive a similar error when I create a data frame with mixed classes
> of objects.
>
> Thanks ahead of time!
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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