Learn R Programming

briskaR (version 1.0.4)

loadIndividuals: Wrapper function loadIndividuals

Description

Wrapper function to create an individuals object using sf or SpatialPoints and data.frame.

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

Usage

loadIndividuals(sf, data, timeline)

Arguments

sf

a sf object

data

a data.frame containing individuals attributes. Rows numbers as individuals ID, columns names as dob (date of birth) | life_duration | toxic_threshold

timeline

Vector of the time line

Value

an Individuals object