rez_add_row: Add new rows to a rezrDF.

View source: R/rezrDF_tidy.R

rez_add_rowR Documentation

Add new rows to a rezrDF.

Description

Add new rows to a rezrDF.

Usage

rez_add_row(df, ..., rezrObj = NULL)

Arguments

df

The rezrDF to be updated.

...

Argument names are column names, and argument values are vectors of values of the rows you are adding. If a primary key is not supplied, I will generate one for you. Auto fields are automatically updated and do not need to be supplied.

rezrObj

A rezrObj, if you want to ensure that the primary key doesn't overlap with any other node in the nodeMap.

Value

The rezrDF with the new row(s).

Note

Does not update foreign fields. If you want to update foreign fields, use addRow.rezrDF. If you call this function on a rezrDF with complex foreign fields, use addRow.rezrDF instead; otherwise, you cannot update those fields in the future.

Examples

sbc007 = rez_add_row(sbc007$trailDF$default, doc = "sbc007", chainCreateSeq = max(rez007$trailDF$default$chainCreateSeq) + 1, layer = "default", name = "Danae", chainSize = 1)

johnwdubois/rezonateR documentation built on Nov. 19, 2024, 11:17 p.m.