Displaying 1 result from an estimated 1 matches for "wisea".
Did you mean:
wise
2009 Oct 29
2
Recommendation for dealing with mixed input types in CSV
...Right now I have something like the following
input_df<-read.csv(InputFile, skip=0, header=TRUE, strip.white = TRUE)
I tried:
as.numeric(input_df[, 11:56])
but this returns an error
Error: (list) object cannot be coerced to type 'double'
Oddly it does appear to work successfully row-wiseas.numeric(input_df[1, 11:56])
as.numeric(input_df[2, 11:56])
etc.
However, trying it on multiple rows produces the same error as above:
as.numeric(input_df[1:2, 11:56])
After a bit, I became a bit frustrated that this was not working so I tried just deleting the columns:
input_df[1, 11:56]<-NU...