[ top | up ]

Data Frames

Syntax

data.frame(..., row.names=NULL)
row.names(data.frame.obj)
as.data.frame(x)
is.data.frame(x)

Arguments

... these arguments are of either the form value or tag=value. Component names are created based on the tag (if present) or the deparsed argument itself.
row.names a character vector giving the row names for the data frame.

Description

Data frames are the fundamental data structure used by most of R's modeling software.

as.data.frame attempts to coerce its argument to be a data frame.

is.data.frame returns TRUE if its argument is a data frame and FALSE otherwise.