convert_parameters_to_targets: convert_parameters_to_storage_targets

View source: R/functions.R

convert_parameters_to_targetsR Documentation

convert_parameters_to_storage_targets

Description

fit parameters of a constrained harmonic

Usage

convert_parameters_to_targets(parameters, target_name, constrain = TRUE)

Arguments

parameters

vector of length 5 giving, in order, intercept, sine term, cosine term, and upper and lower constraints of the harmonic.

target_name

optional. Character string naming the target. E.g., "flood" or "conservation." Default is simply "target."

constrain

logical. Constrain targets?

Value

a tibble of storage target levels by week


IMMM-SFA/starfit documentation built on Oct. 23, 2022, 7:19 a.m.