primary_producers: Create a primary_producers object to use in a trophic...

Description Usage Arguments Value Examples

Description

A 'primary_producers' object stores the primary production inputs for a set of nodes in a food web

Usage

1
2
3
4
5
6
build_primary_producers(production_mean, production_sd, ...)

is.primary_producers(x)

## S3 method for class 'primary_producers'
print(x, ...)

Arguments

production_mean

a vector of production means

production_sd

a vector of production standard deviations

...

further arguments passed to or from other methods

x

an object to print or test as a primary_producers object

Value

An object of class primary_producers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
library(trophic)

# Construct the primary_producers object

test_producers <- build_primary_producers(production_mean = c(1, 2, 3),
                                          production_sd = c(0.1, 0.5, 0.2))

# Test if object is of the type 'primary_producers'
  
## Not run: 
is.primary_producers(x)

## End(Not run)

# Print information about the 'primary_producers' object

## Not run: 
print(x)

## End(Not run)

jdyen/trophic documentation built on May 15, 2019, 3:19 p.m.