Df: Nice data frame

View source: R/Df.R

DfR Documentation

Nice data frame

Description

A version of data.frame with stringsAsFactors and check.names defaulting to FALSE.

Usage

Df(
  ...,
  vars = NULL,
  info = NULL,
  row.names = NULL,
  check.rows = FALSE,
  check.names = FALSE,
  stringsAsFactors = FALSE,
  emptyStringsAsNA = TRUE
)

## S3 replacement method for class 'Df'
x$name <- value

## S3 replacement method for class 'Df'
x[[i, j]] <- value

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.

vars

A data.frame with meta-data on variables

info

An informative title of the data frame

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; defaults to FALSE. 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? Defaults (of course!!) to FALSE.

emptyStringsAsNA

logical: should empty strings (within character vectors) be converted to NA? Defaults to TRUE.

Value

a data frame

NULL

NULL

See Also

data.frame


lebatsnok/hammock documentation built on Dec. 2, 2022, 6:25 a.m.