Learn R Programming

Biolinv (version 0.1-3)

SDS: Generates a list of dispersal vectors.

Description

This function generates a set of spatial vectors whose length is sampled form a user-defined dispersal kernel and whose direction is sampled randomly from 1 degree to 360 degrees.

Usage

SDS(probDist, DIST, npop = 10000)

Arguments

probDist

Probability Distribution of npop.

DIST

vector of possible distances [m] to be sampled for dispersal.

npop

number of distance-angle couples that need to be produced.

Value

data frame of y and x shifts.

Examples

Run this code
# NOT RUN {
dist<- seq(.1, 30, .1)
prob<- fx(x=dist, a=7, c=2)
deltas<- SDS(DIST=dist, probDist=prob)
# }

Run the code above in your browser using DataLab