Skip to contents

Add additional variables that can be used to define rules for

Usage

add_variable(data, name, assign_unit, overwrite, con, variables)

Arguments

data

The table that should be added as a variable. The number of columns must be 1 or the number of subbasins. the row number must be the same as the number of weather records.

name

Character string to define the name of the added variable (this name must be used in the rule set)

assign_unit

tibble to link spatial units to the variables in data

variables

Internal variables. Not defined by user. Required number of variables.

date

Internal variable. Not defined by user. Date vector that is added.

Value

Generates a new farmr_project in the working environment (as an R6 object) and saves the project the TxtInOut folder.