[R] Print a list in columns
Adam D. I. Kramer
adik at ilovebacon.org
Sat Dec 20 21:02:05 CET 2008
write.table doesn't work, because it's not clear how to print it in
two columns, so we can't help you yet either. Do you want to match the
first item in v1 with the first item in v2, and have a bunch of NAs hanging
off the end of the shorter column in the output? Or align the last items?
Or do you want to just drop the "extra" items in one column? Etc.
On Sat, 20 Dec 2008, Borja Soto Varela wrote:
> Dear R-Users
> I have a list with two vectors of doubles tha have different lengths. I want
> to export it to a file and I also want to print it in two columns.
> I try with write.table but it need vectors of the same length.
> Does anyone know how to do it?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help