Data.frame - data.frame cfw_base R Documentation Data Frames Description This function creates data frames tightly coupled collections of variables

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
data.frame {base} R Documentation Data Frames Description This function creates data frames, tightly coupled collections of variables which share many of the properties of matrices and of lists, used as the fundamental data structure by most of R 's modeling software. Usage data.frame(. .., row.names = NULL, check.rows = FALSE, check.names = TRUE, stringsAsFactors = default.stringsAsFactors()) default.stringsAsFactors() 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 NULL or a single integer or character string specifying a column to be used as row names, or a character or integer vector giving the row names for the data frame. check.rows if TRUE then the rows are checked for consistency of length and names. check.names logical. If TRUE then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names and are not duplicated. If necessary they are adjusted (by make.names ) so that they are. stringsAsFactors logical: should character vectors be converted to factors? The ‘factory-fresh’ default is TRUE , but this can be changed by setting options (stringsAsFactors = FALSE) . Details A data frame is a list of variables of the same number of rows with unique row names, given class "data.frame" . If no variables are included, the row names determine the number of rows.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2011 for the course STATS 102A 102A taught by Professor Jandeleeuw during the Fall '10 term at UCLA.

Page1 / 3

Data.frame - data.frame cfw_base R Documentation Data Frames Description This function creates data frames tightly coupled collections of variables

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online