[R] Error: (list) object cannot be coerced to type double; on running the following code in R ver 3.1.2

Aditya Singh aps6dl at yahoo.com
Tue Nov 11 10:05:54 CET 2014


setwd("C:/Documents and Settings/Administrator/Desktop/Coursera/specdata/specdata")temp=list.files(pattern="*.csv")myfiles=lapply(temp,read.delim)summk=0nummk=0for (i in 1:10) {  vb=data.frame(myfiles[i])  vbm=as.double(vb)  summk=sum(vbm[,2])  nummk=length(vbm[,2]) - sum(is.na(vbm[,2]))}
Aditya

	[[alternative HTML version deleted]]



More information about the R-help mailing list