Warning message: NAs introduced by coercion

r

#1

I am currently solving one classification problem for solving it first I am trying to convert character vector into numeric vector but while doing it ,I am getting this warning .I want to know is this warning a cause of concern or I can move forward .

startup<- read.csv(file="CAX_Startup_Data.csv", header=TRUE, as.is=T)

#### R code for replacing ‘No Info’ and 'blanks' with NA
startup[startup=="No Info"]<- NA
startup[startup==""]<- NA

#### R code for converting column as date
startup$Est..Founding.Date <- as.Date(startup$Est..Founding.Date, "%m/%d/%Y")
startup$Last.Funding.Date <- as.Date(startup$Last.Funding.Date, "%m/%d/%Y")

#### R code for converting character vector to numeric
 ####noting columns that needs to be converted to numeric
col<- c(3:5,10,11,18:23,25,61,66,68:70,72,74,88,92,94:96,98,99,102:116)

#### using for loop for converting column as numeric
for(i in col)
{
startup[,i]<-as.numeric(startup[,i])
}

#2

Hi Harry
difficult to see without one str() of startup.
Alain


#3

try this thing,
startup[c(col)]<-apply(startup[c(col)],c(1,2),as.numeric))
Thanks