update_df_prop_by_key {rollupTree}R Documentation

Update a property in a data frame

Description

update_df_prop_by_key() is a convenience wrapper around update_prop() for the common case in which the data set is a data frame.

Usage

update_df_prop_by_key(df, key, target, sources, prop, ...)

Arguments

df

a data frame

key

name of the column serving as key

target

key of data set element to be updated

sources

keys of data set elements to be combined

prop

column name of the property

...

other arguments passed to update_prop()

Value

The updated data frame

Examples

update_df_prop_by_key(wbs_table, "id", "1", list("1.1", "1.2"), "work")

[Package rollupTree version 0.3.2 Index]