[R] Expected behavior of as.character ??
koooee
nickkolegraff at gmail.com
Wed Feb 9 17:11:29 CET 2011
is this the expected behavior of as.character ?
resultset is a data.frame from a sqlQuery() using RODBC
> a = as.character(as.vector(resultset[1]))
> a
[1] "c(-1, 1, 2, 3, 4, 5, 6, 7, 8, 9)"
I would expect the statement above to return similar to the result below, am
I missing something?
> as.character(c(-1,1,2,3,4,5,6,7,8,9))
[1] "-1" "1" "2" "3" "4" "5" "6" "7" "8" "9"
--
View this message in context: http://r.789695.n4.nabble.com/Expected-behavior-of-as-character-tp3297558p3297558.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list