Learn R Programming

SEHmodel (version 0.0.10)

loadIndividuals: Wrapper function loadIndividuals

Description

Wrapper to create an Individuals object using SpatialPoints and dataframe.

The SpatialPoints object and the data.frame have to contain the same number of coordinates and row.

Usage

loadIndividuals(objectL, sp, data, mintime, maxtime)

Arguments

objectL
a Landscape object
sp
a SpatialPoint object (individuals coordinates)
data
a data.frame containing individuals attributs. Row num as individuals ID, cols names as dob (date of birth) | life_duration | toxic_threshold
mintime
Start simulation time
maxtime
End simulation time

Value

  • an Individuals object