Skip to content
Prev 267695 / 398502 Next

Odp: A problem of is.list function

Hi
statement,
R-intro document which shall be included in any installation tells you 
about data frame

6.3 Data frames
A data frame is a list with class "data.frame". There are restrictions on 
lists that may be made into data frames, namely 
The components must be vectors (numeric, character, or logical), factors, 
numeric matrices, lists, or other data frames. 
Matrices, lists, and data frames provide as many variables to the new data 
frame as they have columns, elements, or variables, respectively. 
Numeric vectors, logicals and factors are included as is, and character 
vectors are coerced to be factors, whose levels are the unique values 
appearing in the vector. 
Vector structures appearing as variables of the data frame must all have 
the same length, and matrix structures must all have the same row size. 

Regards
Petr
http://www.R-project.org/posting-guide.html