You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' Read and modify an existing worldfile. Optimized somewhat (for R) but awk may still be faster.
4
4
#' @param worldfile Name and path of worldfile to be created.
5
5
#' @param vars State variable(s) from the worldfile to be modified
6
-
#' @param values Values to replace for `vars`, or coefficients to multiply by. N args must equal that of vars or be 1 (will be used for all vars).
6
+
#' @param values Values to replace for `vars`, or coefficients to multiply by. N args must equal that of vars or be 1 (will be used for all vars).
7
7
#' or can be a list of values where number of list elements = n vars
8
-
#' @param level_names The level for which a given state variable will have it's value changed or replaced. Can be a single character string or vector
8
+
#' @param level_names The level for which a given state variable will have it's value changed or replaced. Can be a single character string or vector
9
9
#' of character strings. Valid arguments are: world, basin, hillslope, zone, patch, canopy_strata.
10
-
#' @param level_IDs The IDs of the correstponding `level_names` for which a given state variable will have it's value changed or replaced. Set to NULL or "all"
10
+
#' @param level_IDs The IDs of the correstponding `level_names` for which a given state variable will have it's value changed or replaced. Set to NULL or "all"
11
11
#' to change a value across all of a given level (e.g. for all patches). This can be a vector same length as names, or a list, with IDs for each named level in names
12
12
#' @param out_file Destination file to write new worldfile
13
13
#' @param overwrite TRUE/FALSE if input worldfile should be overwritten
0 commit comments