obj <- c(~garch(1,1), ~arma(1,1)) typeof(obj[[1]]) Use doble '[' indeed of '['
On Thu, Oct 7, 2010 at 10:50 AM, lord12 <trexi...@yahoo.com> wrote: > > If I have a list: > > list = c(~garch(1,1), ~arma(1,1)) and I run > typeof(list[1]), the output is a list object. But I want each element in > the > list to be a language object. How do I transform these list objects to > language objects? > -- > View this message in context: > http://r.789695.n4.nabble.com/how-to-convert-list-to-language-object-tp2966813p2966813.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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ 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.