[R] How to get all list item to one string variable
arun.gurubaramurugeshan
arun.gurubaramurugeshan at Autozone.com
Thu Jul 12 14:54:03 CEST 2012
Try this...
a<-c("abc","def","ghi","klm","nop","qrs","tuv","wxyz")
b<-data.frame()
for (i in 1:length(a)){
b<-paste(b,a[i],sep="")
}
print(b)
Thanks
Arun
---
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-all-list-item-to-one-string-variable-tp4636283p4636291.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list