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.
df_from_spec(x, n)
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
).
A data frame with (at least) columns name
and mode
.
The number of rows desired for the returned data frame. May be 0.