Description Usage Arguments Value Examples
Makes a data frame with the same columns of df
and
n_rows
number of rows and all values fill_val
1 | make_fill_df(df, n_rows = 1, fill_val = NA)
|
df |
a data.frame (or tibble) object |
n_rows |
number of rows for the final data frame |
fill_val |
value to fill all cells of the data frame |
a data frame (or tibble) with the desired number of rows filled
with fill_val
1 2 3 4 5 6 7 | df <- data.frame(
col_a = c("A", "B"),
col_b = c("C", "D")
)
df
make_fill_df(df, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.