Re: [R] Exporting list with unequal length of rows

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Sat, 07 May 2011 08:58:48 -0400

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 07 May 2011 - 13:04:35 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 07 May 2011 - 13:50:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive