[R] Writing a matrix of lists as a CSV file

Jim Lemon drjimlemon at gmail.com
Thu Jan 14 11:49:06 CET 2016


Hi Teo,
Your "list" looks suspiciously like a vector. It might help if you provided
the output of:

str(my_matrix)

(or whatever your matrix is named) as that would ensure that we were
talking about the same objects.

Jim


On Thu, Jan 14, 2016 at 7:10 PM, TJUN KIAT TEO <teotjunk at hotmail.com> wrote:

>
>
> I
> have a matrix of lists in R that looks like this
>
>
>
>    Crabs  Glass nnet List,2 List,2rf   List,1 List,1
>
>
>
> An
> example of what a list looks like in the matrix
>
>
>
> size decay6    3   0.1
>
>
>
> How can I write it into a csv file in R so I can retrieve it
> in the same format?
>
> Thanks
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list