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 <mathijsdev...@gmail.com> schrieb am Mo, 20.6.2011: > Von: mdvaan <mathijsdev...@gmail.com> > Betreff: [R] Adding objects to a list > An: r-help@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@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. > ______________________________________________ R-help@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.