[R] Convert a list in a dataframe

Liaw, Andy andy_liaw at merck.com
Fri Oct 22 13:56:43 CEST 2004


Try something like:

as.data.frame(do.call("rbind", coeff))

HTH,
Andy

> From: Vito Ricci
> 
> Hi,
> 
> I've a list containing parameters (intercepts &
> coefficients) of 12 regressions fitted
> 
> > coeff
> [[1]]
>  (Intercept)         anno 
> -427017.1740     217.0588 
> 
> [[2]]
>  (Intercept)         anno 
> -39625.82146     21.78025 
> 
> .....
> 
> [[12]]
> (Intercept)        anno 
> 257605.0343   -129.7646 
> 
> I want create a data frame with two columns (intercept
> and anno)using data in these list.
> 
> Any help will be appreciated.
> Best
> Vito
> 
> 
> 
> =====
> Diventare costruttori di soluzioni
> 
> "The business of the statistician is to catalyze 
> the scientific learning process."  
> George E. P. Box
> 
> 
> Visitate il portale http://www.modugno.it/
> e in particolare la sezione su Palese 
> http://www.modugno.it/archivio/cat_palese.shtm> l
> 
> 
> ______________________________________________
> 
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list