repeat_sub(x, column = "subheading", first = TRUE)
Value
a tibble
Arguments
x
a tibble with subheadings
column
new column name, default subheading
first
add subheader as first column, default TRUE
Author
Chris Stubben
Details
Identifies subheadings in a data frame by checking for rows with a non-empty
first column and all other columns are empty. Removes subheader rows and
repeats values down a new column.