df_from_spec | R Documentation |
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)
x |
A data frame with (at least) columns |
n |
The number of rows desired for the returned data frame. May be 0. |
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
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.