w******g 发帖数: 271 | 1 Hi, Da Ge Da Jie Men,
I have a quick question in R language.
That when I load some data, like"1000", it is a string rather than number,
how am I supposed to turn this into a number?
I tried as.double(), but errors happen. Don't know why.
Can you guys help me? | c**********e 发帖数: 2007 | 2 stat board is a better place to ask a R question. | f***a 发帖数: 329 | 3 better ask on stat board
and the answer is as.numeric()
number,
【在 w******g 的大作中提到】 : Hi, Da Ge Da Jie Men, : I have a quick question in R language. : That when I load some data, like"1000", it is a string rather than number, : how am I supposed to turn this into a number? : I tried as.double(), but errors happen. Don't know why. : Can you guys help me?
|
|