View source: R/simulate-tracks.R
simulateTracks | R Documentation |
Generic function that executes expr
, which is expected to
return a track, n
times and stores the output in a tracks
object. Basically, this works like replicate
but for tracks.
simulateTracks(n, expr)
n |
number of tracks to be generated. |
expr |
the expression, usually a call, that generates a single track. |
A tracks
object containing n
tracks.
## Generate 10 tracks, 100 steps each, from a random walk with standard normally
## distributed increments and plot them
plot( simulateTracks( 10, brownianTrack(100,3) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.