trapTransect: Function to construct an object representing a transect of...

Description Usage Arguments Details Value References See Also Examples

Description

This function constructs a trapTransect object given a vector of trap distances from the parent plant, a vector of trap seed counts corresponding to the trap distances, and a single trap area.

Usage

1
 trapTransect(distances, seed.counts, trap.area = 0.0001) 

Arguments

distances

A vector of trap distances from the parent plant.

seed.counts

A vector of seed counts in each trap.

trap.area

The surface area of each trap.

Details

This function is a constructor.

Value

A trapTransect object, which is a list comprising three objects:

distances

A vector of trap distances from the parent plant.

seed.counts

A vector of seed counts in each trap.

trap.area

The surface area of each trap.

References

Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.

See Also

mean.trapTransect, print.trapTransect

Examples

1
2
3
s1 <- trapTransect(distances = 1:4, seed.counts = c(4, 3, 2, 0))
s1
mean(s1)

spuRs documentation built on May 2, 2019, 12:44 p.m.

Related to trapTransect in spuRs...