search for: 216918000r0dbl

Displaying 1 result from an estimated 1 matches for "216918000r0dbl".

2011 May 05
1
reading a column as a character vector
...ormat of the input (remove quotes, add spaces, only put quotes around the entire list of codes...) The first column is numeric, the second column is a character vector of event codes. Ultimately, I want to to transform the second column into a factor where each event code (such as 58905313R0EOL or 216918000R0DBL) is a separate level. while the following statement works: reduce2<-read.table("reduce2.csv", sep=",", colClasses=c("integer","factor")) it does not know to break the event vectors into separate levels, the factor it creates is wrong. Perhaps there'...