df_from_spec: Create a Data Frame from a Specification

View source: R/dfSpecs.bare.R

df_from_specR Documentation

Create a Data Frame from a Specification

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

df_from_spec(x, n)

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 22, 2024, 11:02 a.m.