setTime {landsepi}R Documentation

Set time parameters

Description

Updates a LandsepiParams object with time parameters : Nyears and nTSpY

Usage

setTime(params, Nyears, nTSpY)

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).

Value

a LandsepiParams object.

Examples

## Not run: 
simul_params <- createSimulParams()
simul_params <- setTime(simul_params, Nyears=10, nTSpY=120)
simul_params@TimeParam

## End(Not run)

[Package landsepi version 1.4.0 Index]