consecutive.diff: consecutive diff

Description Usage Arguments Value

Description

consecutive diff

Usage

1
consecutive.diff(df, c1, c2, nm = "consec.diff")

Arguments

df

the dataframe

c1

a column name of a numerical column

c2

a column name of a numerical column

nm

new column name

Value

a dataframe which is a copy of df with a new column added, with name given by the parameter nm. Each entry of this new column is equal to [the entry in that row of c2] - [the entry in c1 from the row above]


HorridTom/clahrcnwlhf documentation built on May 7, 2019, 4:02 a.m.