list to data.frame

Share:

Description

Modification of an object of class list into an object of class data.frame.

Usage

1
list.to.data(lista,nvar="clasif")

Arguments

lista

list that contains several data.frame of the same structure.

nvar

(Optional) Name of the new variable that considers the partition given by the elements of the list.

Details

This function turns an object of class list into an object of class data.frame, this function is used internally to create objects of class data.frame to make tables in LaTeX format.

Value

Object of class data.frame.

Author(s)

Pedro Cesar Del Campo pcdelcampon@unal.edu.co

Examples

1
2
3
4
5
6
 A <- data.frame(r1=rnorm(5),r2=rnorm(5))
 B <- data.frame(r1=rnorm(15),r2=rnorm(15))

 LL <- list(A=A,B=B)
 LL
 list.to.data(LL)