[R] Data Manipulation
    Peter Rote 
    r.rote12 at googlemail.com
       
    Fri Jan 22 17:02:28 CET 2010
    
    
  
Thank you Don for the code, 
but I get the following 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-tp1018249p1100168.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list