df_from_spec: Create a Data Frame from a Specification

Description Usage Arguments Value

View source: R/dfSpecs.bare.R

Description

Create a data frame from a specification that describes its column names and modes. All entries are NA (of the appropriate mode). This is an internal function, not intended to be called by package users.

Usage

1

Arguments

x

A data frame with (at least) columns name and mode.

n

The number of rows desired for the returned data frame. May be 0.

Value

A data frame with as many columns as x has rows. Column names are taken from x$name and modes from x$mode. (See ?mode).


tablesgg documentation built on June 3, 2021, 1:06 a.m.