Learn R Programming

cheapr (version 0.9.8)

new_df: Fast data frame constructor

Description

Fast data frame constructor

Usage

new_df(..., .nrows = NULL, .recycle = FALSE, .name_repair = FALSE)

Value

A data.frame

Arguments

...

Key-value pairs.

.nrows

integer(1) (Optional) number of rows.
Commonly used to initialise a 0-column data frame with rows.

.recycle

logical(1) Should arguments be recycled? Default is FALSE.

.name_repair

logical(1) Should duplicate names be made unique? Default is FALSE.