addRow: Add rows to a certain data.frame

View source: R/generic.R

addRowR Documentation

Add rows to a certain data.frame

Description

Add rows to a certain data.frame

Usage

addRow(x, ...)

## S3 method for class 'rezrDF'
addRow(rezrDF, ...)

## S3 method for class 'rezrObj'
addRow(rezrObj, entity, layer, nodeMapArgs = list(), ...)

Arguments

...

Arguments to be passed on to rez_add_row

rezrDF

The rezrDF to be added.

rezrObj

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

entity

The name of the Rezonator entity that you will be changing - track, rez, chunk, token, unit, stack, etc.

layer

The layer you would like to edit.

nodeMapArgs

A list of fields to be added to the nodeMap only, not the rezrDF.

Value

If applied to a rezrDF, the rezrDF to which a row is added.

If applied on a rezrObj, a rezrObj with both the rezrDF and the associated nodeMap updated.

Examples

sbc007 = addRow(sbc007, "trail", "default",
                          doc = "sbc007",
                          chainCreateSeq = max(sbc007$trailDF$default$chainCreateSeq) + 1,
                          name = "Danae",
                          chainSize = 1)

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