append_df: Append DF using specified overwrite modes

Description Usage Arguments Value

Description

Given a main df, either replace, append, or warn of conflict for values found in matching column and row of new df. Row is matched by a paired id value.

Usage

1
2
append_df(main, new, id = "Patient", mode = "safe", verbose = TRUE,
  delim = "; ")

Arguments

main, new

data frames, each with column "id".

id

column name used to designate matching rows.

mode

"append" any new values to preexisting values using delimiter, "replace" any preexisting values with new value, or "safe" (DEFAULT) to only write new value if no preexisting valuethe search column name.

verbose

not yet implemented

delim

string value used to append new values during "append" mode.

Value

merged df


dkrozelle/toolboxR documentation built on May 15, 2019, 9:13 a.m.