carry_forward
implements row-wise or column-wise last non-missing
observation carried forward, in a table of tidy Excel data created by
read_xlreturns()
or tidyxl::xlsx_cells()
. Usually called by
as_header()
, not directly.
1 2 3 4 5 6 | carry_forward(.data, rows = TRUE, cols = TRUE, .by = "row",
value.name = "value")
carry_right(.data, rows = TRUE, cols = TRUE, value.name = "value")
carry_down(.data, rows = TRUE, cols = TRUE, value.name = "value")
|
.data |
A table of tidy spreadsheet data (i.e., with columns |
rows |
One of: a vector of spreadsheet row indexes; a logical vector with
length equal to the row count of dataframe |
cols |
One of: a vector of spreadsheet column indexes; a logical vector with
length equal to the column count of dataframe |
.by |
Carry forward by |
value.name |
Column in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.