Displaying 1 result from an estimated 1 matches for "gsm187153".
Did you mean:
gsm187154
2012 Apr 13
3
How do I convert factors to numeric? It's an FAQ but...
...r R list people
I loaded a file of numbers into R and got a dataframe of factors. So I tried to convert it to numeric as per the FAQ using as.numeric(). But I'm getting errors (please see example), so what am I getting wrong?
Thanks for your time.
John
Example...
#my data object
> f
GSM187153 GSM187154 GSM187155 GSM187156 GSM187157 GSM187158 GSM187159
13 7.199346 7.394519 7.466155 8.035864 7.438536 7.308401 7.707994
14 6.910426 6.360291 6.228221 7.42918 7.120322 6.108129 7.201477
15 8.85921 9.152096 9.125067 6.4458 8.600319 8.97577 9.691167
16 5.851665 5.6215...