df_set_by_key {rollupTree}R Documentation

Set property by key in data frame

Description

Set property by key in data frame

Usage

df_set_by_key(df, key, keyval, prop, val)

Arguments

df

a data frame

key

name of the column used as key

keyval

value of the key for the specified row

prop

column name of the property value to get

val

value to set

Value

The updated data frame

Examples

df_set_by_key(wbs_table, "id", "1", "work", 45.6)

[Package rollupTree version 0.3.2 Index]