This function simulates a timeseries for the average number of occurrences of a species using a random walk over time.
Usage
simulate_random_walk(
initial_average_occurrences = 50,
n_time_points = 10,
sd_step = 0.05,
seed = NA
)Arguments
- initial_average_occurrences
A positive numeric value indicating the average number of occurrences to be simulated at the first time point.
- n_time_points
A positive integer specifying the number of time points to simulate.
- sd_step
A positive numeric value indicating the standard deviation of the random steps.
- seed
A positive numeric value setting the seed for random number generation to ensure reproducibility. If
NA(default), thenset.seed()is not called at all. If notNA, then the random number generator state is reset (to the state before calling this function) upon exiting this function.
See also
Other occurrence:
create_spatial_pattern(),
sample_occurrences_from_raster(),
simulate_timeseries()
