permutations: Create a permutation for snowfall to train soil moisture...

View source: R/AgroSoil_generic_functions.R

permutationsR Documentation

Create a permutation for snowfall to train soil moisture prediction model

Description

Useful tool to create a matrix of series of permutation for use in a parallelized soil moisture prediction

Usage

permutations(pred.year.lst, month.lst, target_var)

Arguments

pred.year.lst

A vector of prediction years as numeric.

month.lst

A vector of prediction months as string.

target_var

Target variable to predict

Value

x A permutated matrix of year, month and target variable

Examples

pred.year.lst <- c(2015,2020)
month.lst <- c("Jan", "Dec")
target_var <- "SM"

x <- permutations(pred.year.lst, month.lst, target_var)

kanj241/agrosoil documentation built on March 25, 2022, 12:22 a.m.