add_if_unique: Add row to dataframe, or remove it if it already exists

Description Usage Arguments Value

Description

Add row to dataframe, or remove it if it already exists

Usage

1
add_if_unique(original, append, x, y)

Arguments

original

The input dataframe

append

A dataframe containing the same columns as 'original' and 1 row

x

Column containing the x-values

y

Column containing the y-values

Value

If the row in 'append' exists in 'original' it will be removed, otherwise it will be added to the dataframe that is returned.


emiltb/peakr documentation built on May 28, 2019, 8:36 p.m.