make_fill_df: Make a data frame of all a single value

Description Usage Arguments Value Examples

View source: R/asymmetrise.R

Description

Makes a data frame with the same columns of df and n_rows number of rows and all values fill_val

Usage

1
make_fill_df(df, n_rows = 1, fill_val = NA)

Arguments

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

Value

a data frame (or tibble) with the desired number of rows filled with fill_val

Examples

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)

jhrcook/ggasym documentation built on July 12, 2021, 3:27 a.m.