validate_df_by_key {rollupTree} | R Documentation |
Validate a data frame For rollup()
Description
validate_df_by_key()
is a convenience wrapper for validate_ds()
for the common case in which the
data set is a dataframe.
Usage
validate_df_by_key(tree, df, key, prop, ...)
Arguments
tree |
tree to validate against |
df |
data frame |
key |
name of the column serving as key |
prop |
property whose value is checked (leaf elements only) |
... |
other parameters passed to validate_ds() |
Value
TRUE if validation succeeds, halts otherwise
Examples
validate_df_by_key(wbs_tree, wbs_table, "id", "work")
[Package rollupTree version 0.3.2 Index]