[R] write .table
Rajasekaramya
ramya.victory at gmail.com
Wed Aug 6 00:19:27 CEST 2008
hi there
Can i write two objects in one file.
one is a list and another is a vector.
The vector here is the names of the list.so can i write
for(i in 1:60) # i have 60 list elements.
{
write.table(names(mylist[[i]],mylist[[i]],filename=test.txt,sep="\t",append=TRUE)
}
my testfile.txt should have
$listname1
v1 V2 V3
abc 123 lmo
$listname2
V1 V2 V3
abr 904 egt
errr 604 gfd
ext 670 rdf
Kindly help me
--
View this message in context: http://www.nabble.com/write-.table-tp18841055p18841055.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list