data_frame: Alternative to data.frame

View source: R/utils.R

data_frameR Documentation

Alternative to data.frame

Description

  • Sets stringsAsFactors to FALSE by default

  • If any columns have zero length, the result will have zero rows.

  • If a column is a scalar, then it will be recycled.

  • Non-matching number of rows gives an error, except for lengths zero and one.

Usage

data_frame(..., stringsAsFactors = FALSE)

Arguments

...

Named data frame columns, or data frames.

stringsAsFactors

Just leave it on FALSE. ⁠:)⁠

Value

Data frame.


r-lib/rcmdcheck documentation built on Nov. 9, 2023, 10:08 a.m.