Message-ID: <39B6DDB9048D0F4DAD42CB26AAFF0AFAFED44D@usctmx1106.merck.com>
Date: 2005-09-19T13:43:38Z
From: Liaw, Andy
Subject: Lists and data frames (PR#8143)
> 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>