Rev 2 | Rev 286 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{data.frame}\title{Data Frames}\usage{data.frame(\dots, 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)}\alias{data.frame}\alias{as.data.frame}\alias{is.data.frame}\alias{row.names}\alias{print.data.frame}\arguments{\item{\dots}{these arguments are of either the form \code{value} or\code{tag=value}. Component names are created based on the tag (ifpresent) or the deparsed argument itself.}\item{row.names}{a character vector giving the row names for the dataframe.}\item{col.names}{a character vector giving names for the variables inthe data frame.}\item{as.is}{a logical value indicating whether character variablesshould be left ``as is'' or converted to factors.}}\value{A data frame. Data frames are the fundamental data structure used bymost of R's modeling software. They are tightly coupled collectionsof variables which share many of the properties of matrices. The maindifference being that the columns of a data frame may be of differingtypes (numeric, factor and character).\code{as.data.frame} attempts to coerce its argument to be a dataframe.\code{is.data.frame} returns \code{TRUE} if its argument is a dataframe and \code{FALSE} otherwise.}\seealso{\code{\link{read.table}}.}