[R] not complete character in csv file
R. Michael Weylandt
michael.weylandt at gmail.com
Mon Dec 12 17:20:31 CET 2011
Matrix (which is secretly a vector) can only have one mode
(numeric/factor/character/etc.) for all its elements. If you need
multiple types, go to a data frame
On Mon, Dec 12, 2011 at 10:39 AM, threshold <r.kozarski at gmail.com> wrote:
> Indeed in txt it looks fine. Anyway, I must stay without 0 because csv is THE
> I got another question. why for
> Table <- matrix(0,8,3)
> day = "Monday"
> all other elements become characters too?
> Thanks, robert
> View this message in context: http://r.789695.n4.nabble.com/not-complete-character-in-csv-file-tp4185785p4186427.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> 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