Re: [R] Stucked with as.numeric function

2011-03-21 Thread Tóth Dénes
> > 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

Re: [R] Stucked with as.numeric function

2011-03-21 Thread David Winsemius
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

Re: [R] Stucked with as.numeric function

2011-03-21 Thread Kenn Konstabel
On Mon, Mar 21, 2011 at 5:57 PM, 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 > keeping the d

Re: [R] Stucked with as.numeric function

2011-03-21 Thread Tóth Dénes
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

Re: [R] Stucked with as.numeric function

2011-03-21 Thread David Winsemius
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 keepin

[R] Stucked with as.numeric function

2011-03-21 Thread patsko
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 n