Learn R Programming

landsepi (version 1.5.1)

setTime: Set time parameters

Description

Updates a LandsepiParams object with time parameters : Nyears and nTSpY

Usage

setTime(params, Nyears, nTSpY)

Value

a LandsepiParams object.

Arguments

params

a LandsepiParams Object.

Nyears

an integer giving the number of cropping seasons (e.g. years) to simulate.

nTSpY

an integer giving the number of time steps per cropping season (e.g. days).

Examples

Run this code
if (FALSE) {
simul_params <- createSimulParams()
simul_params <- setTime(simul_params, Nyears=10, nTSpY=120)
simul_params@TimeParam
}

Run the code above in your browser using DataLab