Message-ID: <9850584.2788372.1463140568884.JavaMail.yahoo@mail.yahoo.com>
Date: 2016-05-13T11:56:08Z
From: Elahe chalabi
Subject: changing factor to numbers without getting NAs
Hi all,
I have a df which a part of this is:
TSTMax :int 213 228 227 281
TSTMin :int 149 167 158 176
TSTMean :Factor w/94 levels "100,2" , "104,3" , ...
I want to change the TSTMean into numeric but by using as.numeric(as.character(df$TSTMean)) I get too many NAs.
Is there a way to change TSTMean into numeric without those NAs?
I want TSTMean to be at the end like:
TSTMean :int 100.2 104.3 .....
Thanks for any help
Elahe