[R] Exporting list with unequal length of rows
David Winsemius
dwinsemius at comcast.net
Sat May 7 14:58:48 CEST 2011
On May 7, 2011, at 6:54 AM, ashutosh srivastava wrote:
> Dear users
>
> I have received an output from one of the functions of igraph. The
> output is
> in the following form
> [[1]]
> [1] 1 196 94 89 92 197 0
>
> [[2]]
> [1] 1
>
> [[3]]
> [1] 1 196 97 193 4
>
> [[4]]
> [1] 1 194 97 193 4
>
> [[5]]
> [1] 1 194 97 193 4 6
>
> [[6]]
> [1] 1 196 97 193 4 6
>
> [[7]]
> [1] 1 196 97 193 4 185 7
>
> [[8]]
> [1] 1 194 97 193 4 185 7
>
> [[9]]
> [1] 1 196 97 193 188 185 7
>
> [[10]]
> [1] 1 194 97 193 188 185 7
>
> However I can not figure out how to save this output in a text file
> as all
> the write commands that i know of save lists with equal number of
> elements?
?dump
(As described in the Posting Guide as a mechanism for offering
reproducible examples which would have been desired here as well.)
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list