Create changed data
create_changed_data.RdCreate changed data
Arguments
- compare
A 'current' or 'new' dataset (tibble or data.frame)
- base
A 'previous' or 'old' dataset (tibble or data.frame)
- by
A join bs4Dash::column between the two datasets, or any combination of columns that constitute a unique row.
- by_col
A new name for the joining bs4Dash::column.
- cols
Columns to be compared.
Examples
# with local data
ChangedData <- dfdiffs::ChangedData
InitialData <- dfdiffs::InitialData
create_changed_data(
compare = ChangedData,
base = InitialData,
by = c("subject_id", "record"),
cols = c("text_value_a", "text_value_b", "updated_date")
)
#> Error in tidyr::unite(data, { { new_name }}, { { cols }}, remove = FALSE, sep = sep): `sep` must be a single string, not absent.
create_changed_data(
compare = ChangedData,
base = InitialData,
by = c("subject_id", "record")
)
#> Error in tidyr::unite(data, { { new_name }}, { { cols }}, remove = FALSE, sep = sep): `sep` must be a single string, not absent.