Learn R Programming

FactoClass (version 1.2.9)

list.to.data: list to data.frame

Description

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

Usage

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

Value

Object of class data.frame.

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.

Author

Pedro Cesar Del Campo pcdelcampon@unal.edu.co

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.

Examples

Run this code

 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)


Run the code above in your browser using DataLab