This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/data.frame.html
data.frame {base}R Documentation

Data Frames

Usage

data.frame(..., row.names = NULL, col.names = NULL, as.is = FALSE)

as.data.frame(x)
is.data.frame(x)

row.names(data.frame.obj)
print(data.frame.obj)

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.

col.names

a character vector giving names for the variables in the data frame.

as.is

a logical value indicating whether character variables should be left “as is” or converted to factors.

Value

A data frame. Data frames are the fundamental data structure used by most of R's modeling software. They are tightly coupled collections of variables which share many of the properties of matrices. The main difference being that the columns of a data frame may be of differing types (numeric, factor and character).

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.

See Also

read.table.


[Package base version 0.60 ]