Perhaps not the most elegant solution, but this seems to "work".
> a<- rnorm(5)
> b <- rnorm(10)
> clis <- list(a,b)
> dput(clis, "testfile") # writes to file
#dput works for arbitrary structures
Now pad the shorter of the vectors with NA's and "print" the result of
cbind
> mv <-max(length(cl
Hi Borja,
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
2 matches
Mail list logo