[R] Adding objects to a list

Jannis bt_jannis at yahoo.de
Mon Jun 20 11:32:27 CEST 2011


How about using the available introductory material for such basic questions?

This link for example will tell you what to do:

http://cran.r-project.org/doc/manuals/R-intro.html#Constructing-and-modifying-lists


HTH
Jannis

--- mdvaan <mathijsdevaan at gmail.com> schrieb am Mo, 20.6.2011:

> Von: mdvaan <mathijsdevaan at gmail.com>
> Betreff: [R] Adding objects to a list
> An: r-help at r-project.org
> Datum: Montag, 20. Juni, 2011 09:00 Uhr
> #Hi list,
> 
> #From the code below I get two list objects (n$values and
> n$vectors):
> dat <- matrix(1:9,3)
> n<-eigen(dat)
> n
> 
> # How do I add another object to n that replicates
> n$vectors and is called
> n$vectors$test?
> # Thanks a lot!
> 
> 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Adding-objects-to-a-list-tp3610821p3610821.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.
>



More information about the R-help mailing list