norm.0: Normalize data.frame column values to zero in a specified...

Description Usage Arguments Author(s)

Description

Normalizes all values in data.frame columns based on values in one column. Most natural use is to set values to 0 on a basedate for plotting.

Usage

1
norm.0(df, cols, basedate)

Arguments

cols

Integer or character vector to indicate columns on which normalization should be performed. Defaults to all numeric columns.

basedate

Integer or character to indicate column which is used as the basis for normalization. If several values are given, the second one is used in case value in the first one is not finite.

Author(s)

Lauri Myllyvirta lauri.myllyvirta@greenpeace.org


laurimyllyvirta/lauR documentation built on April 28, 2021, 6:26 p.m.