> From: r-devel > > Full_Name: Frank Wagner > Version: R 2.1.1 > OS: Windows > Submission from: (NULL) (193.174.73.34) > > > Hi, > The pdf file R-intro descripe on page 27 that lists can be > extended by adding > numbers. > Unfortunately, it's not working > ## example : > > # if i did not declare the variable an error occurs : object not found > mylist <- list() > mylist[1] <- list(value1=3, value2=5) > ## Error
I don't get that (with R-2.1.1-patched on WinXPPro): R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 Patched (2005-07-13), ISBN 3-900051-07-0 [...] > mylist <- list() > mylist[1] <- list(value1=3, value2=5) Warning message: number of items to replace is not a multiple of replacement length Andy > Can you please help me > Thank you > > Regards > Frank Wagner > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > > ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel