Dear Chris,
many thanks! This is just what I had in mind! (namely the 'sapply' solution).
Thank you and best regards!
Zdenek
-Original Message-
From: Chris Campbell [mailto:ccampb...@mango-solutions.com]
Sent: Thursday, July 19, 2012 4:11 PM
To: Skála, Zdeněk (INCOMA GfK)
Cc: r-help@
You will probably need to write a custom function, but it could
use the built-in write.dcf() or formatDL() functions. E.g.,
> # options(width=50)
> write.dcf(list(One=paste(1:50,collapse=" "), Two=paste(state.abb[1:5],
collapse=", ")))
One: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17
Dear Zdenek
You could generate this file using a loop.
# the data
abc <- list(one=(1:2), two=(1:5))
# create a connection
sink("aa.txt", append=T, split=T)
# for each element in the list, print
for (list_name in names(abc)) {
cat(list_name,
3 matches
Mail list logo