df_from_spec {tablesgg} | R 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 |
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
).
[Package tablesgg version 0.9-1 Index]