Or
lapply(LIST, cat, file='outtext.txt', append=TRUE)
On Thu, Mar 1, 2012 at 6:20 AM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
Perhaps something like
sink(outtext.txt)
lapply(LIST, print)
sink()
You could replace print with cat and friends if you wanted more
detailed control
Dear R users,
Is it possible to write the following list to a text-file?
List:
[[1]]
[1] 500
[[2]]
[1] 1
[[3]]
[,1] [,2] [,3] [,4] [,5]
FID12345
Var20211
I would like to have the textfile look like this:
500
1
FID 1 2 3 4 5
Var 2 0 2 1 1
Perhaps something like
sink(outtext.txt)
lapply(LIST, print)
sink()
You could replace print with cat and friends if you wanted more
detailed control over the look of the output.
Michael
On Thu, Mar 1, 2012 at 5:28 AM, t.galesl...@ebh.umcn.nl wrote:
Dear R users,
Is it possible to write the
3 matches
Mail list logo