Displaying 1 result from an estimated 1 matches for "kuntadata".
2002 Apr 12
4
Matrix to data.frame without factors
...e other but related question is odd. This time I have numeric col in a
data.frame (at least it should be) which I have fetched from Excel through
RODBC (it's great). But when I'm trying to convert Na to 0 as a side effect
these columns get converted to characters:
> is.numeric(as.matrix(KUNTADATA[,15]))
[1] TRUE
> is.numeric(as.data.frame(as.matrix(KUNTADATA[,15])))
[1] FALSE
or
> is.numeric(data.frame(as.matrix(KUNTADATA[,15])))
[1] FALSE
as.numeric works of course but that's not to way to do well and error robust
code.
Please let me know if you have any idea how to avoid autom...