Description Usage Arguments Value References See Also Examples
View source: R/simulate.transectHolder.R
This function simulates a two-dimensional seed rain according to the model stored in a transectHolder object. The angle of the seed location from the parent plant is uniformly distributed on [0, 2 pi).
| 1 2 3 | 
| object | the transectHolder object for simulation | 
| nsim | the number of seeds to simulate. | 
| seed | if not NULL, set the seed to this value before simulation. | 
| ... | additional optional arguments (ignored here). | 
A dataframe with n rows with the following components:
| distances  | seed distances to parent plant | 
| angles  | seed angles to parent plant, in radians | 
| x  | x-location of seed | 
| y  | y-location of seed | 
Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.
| 1 2 3 4 5 6 7 8 9 10 | transect.1 <- trapTransect(distances = 1:4,
                        seed.counts = c(4, 3, 2, 0))
transect.2 <- trapTransect(distances = 1:3,
                        seed.counts = c(3, 2, 1))
transect.3 <- trapTransect(distances=(1:5)/2,
                        seed.counts = c(3, 4, 2, 3, 1))
allTraps <- transectHolder(transect.1, transect.2, transect.3,
                           family="Weibull")
allTraps
simulate(allTraps, nsim=5, seed=123)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.