as_population: as_population

Description Usage Arguments Value Author(s) Examples

View source: R/as_population.R

Description

The fonction 'as_population' takes as argument a list containing the population caracteristics (population, number at initial time, growth rates. And check if is a class population and return a list duable by BeePODYNA package

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_population(object)

## Default S3 method:
as_population(object)

## S3 method for class 'population'
as_population(object)

## S3 method for class 'list'
as_population(object)

Arguments

object

a list of populations objects (information on the population)

Value

If 'object' is a list, the function will test if it match with the the requirements of a class 'population' object. If 'object' is not a list an error message will be give.

Author(s)

Martial <leroy.martial@etu.univ-grenoble-alpes.fr>

Examples

1
2
 obj = list(label ="pop.test",size= 100,growth_rate = 0.1,capacity = 500)
 as_population(obj)

BEE-Univ-Grenoble/BeePODYNA documentation built on Dec. 25, 2019, 4:49 a.m.