[R] Changing list to variable
Henrique Dallazuanna
wwwhsd at gmail.com
Tue Sep 15 13:24:04 CEST 2009
Try this:
model$stability[name]
On Tue, Sep 15, 2009 at 3:54 AM, Arif Chandra <arif.chandra at hotmail.com> wrote:
>
> Hi,
>
> I have obstacles in changing list to variable,
>
> if I have
>
> name=names(x)
> name --> contain "Sales1", "Sales2"
>
> and then I want to call:
>
> model$stability$name
>
> The list name above will refer to Sales1 and Sales2
>
> How can I do that? thanks
>
> _________________________________________________________________
>
>
> ry-edit.aspx
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list