Learn R Programming

mptools (version 1.0.1)

kch: Extract Metapop KCH

Description

Extract KCH time series for each RAMAS Metapop population.

Usage

kch(meta, path)

Arguments

meta
The R object holding Metapop metadata returned by meta.
path
A character string giving the full path to the directory containing .kch files referred to in object meta.

Value

A matrix containing one column per population, giving the carrying capacity at each time step (i.e. each row).

Examples

Run this code
mp <- system.file('example.mp', package='mptools')
k <- kch(meta=meta(mp), path=dirname(mp))

Run the code above in your browser using DataLab