Hi list,
I have problems with the as.numeric function. I have imported probabilities
from external data, but they are classified as factors as str() shows.
Therefore my goal is to convert the colum from factor to numeric level with
keeping the decimals.
I have googled the problem for a while
On Mar 21, 2011, at 1:57 PM, pat...@gmx.de wrote:
Hi list,
I have problems with the as.numeric function. I have imported
probabilities from external data, but they are classified as factors
as str() shows. Therefore my goal is to convert the colum from
factor to numeric level with
Hi,
I guess you have commas as decimals in your data. Replace it to decimal
points.
Best,
Denes
On Mar 21, 2011, at 1:57 PM, pat...@gmx.de wrote:
Hi list,
I have problems with the as.numeric function. I have imported
probabilities from external data, but they are classified as
On Mon, Mar 21, 2011 at 5:57 PM, pat...@gmx.de wrote:
Hi list,
I have problems with the as.numeric function. I have imported probabilities
from external data, but they are classified as factors as str() shows.
Therefore my goal is to convert the colum from factor to numeric level with
On Mar 21, 2011, at 2:59 PM, Tóth Dénes wrote:
Hi,
I guess you have commas as decimals in your data. Replace it to
decimal
points.
If that is true then the easiest fix would be to set the proper
decimal argument in read.table
?read.table # with ... , dec = , ,
--
david.
Best,
On Mar 21, 2011, at 2:59 PM, Tóth Dénes wrote:
Hi,
I guess you have commas as decimals in your data. Replace it to
decimal
points.
If that is true then the easiest fix would be to set the proper
decimal argument in read.table
In this particular case, sure. If patsko happens to work
6 matches
Mail list logo