Learn R Programming

atlantistools (version 0.4.3)

convert_relative_initial: Calculate relative timeseries using the initial value as benchmark.

Description

Calculate relative timeseries using the initial value as benchmark.

Usage

convert_relative_initial(data, col = "atoutput")

Arguments

data

Dataframe to apply the transformation to.

col

Character value giving the name of the column to transform. Default is "atoutput".

Value

Dataframe with transformed column 'col'.

Examples

Run this code
# NOT RUN {
df <- convert_relative_initial(ref_structn)
head(df[df$layer == 1, ], n = 15)
# }

Run the code above in your browser using DataLab