dfr: data.frame, but with consistent argument formatting.

View source: R/vector.R

dfrR Documentation

data.frame, but with consistent argument formatting.

Description

data.frame, but with consistent argument formatting.

Usage

dfr(
  ...,
  row_names = NULL,
  check_rows = FALSE,
  check_names = TRUE,
  fix_empty_names = TRUE,
  strings_as_factors = FALSE
)

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.

fix_empty_names

logical indicating if arguments which are “unnamed” (in the sense of not being formally called as someName = arg) get an automatically constructed name or rather name "". Needs to be set to FALSE even when check.names is false if "" names should be kept.

strings_as_factors

logical should character vectors be converted to factors? The ‘factory-fresh’ default has been TRUE previously but has been changed to FALSE for R 4.0.0.


D-Se/ergo documentation built on May 24, 2022, 5:20 p.m.