[R] Data Manipulation
Peter Rote
r.rote12 at googlemail.com
Tue Jan 26 11:15:01 CET 2010
I still struggling with this:
error massage:
> by(AlexETF,AlexETF$Industry,function(a) {filename = paste("C:/ab/",gsub("
> ","",a$Industry[1]),".txt",sep="")
+ print(filename)
+ write.table(a[,3,drop=FALSE],quote=FALSE,col.names=FALSE,row.names=FALSE)
+ }
+ )
[1] "C:/ab/Accident&HealthInsurance.txt"
Error in `[.data.frame`(a, , 3, drop = FALSE) :
undefined columns selected
Best,
Peter
--
View this message in context: http://n4.nabble.com/Data-Manipulation-tp1018249p1290191.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list