rf_sampling: Spatial Sampling

Description Usage Arguments Value Examples

Description

Create random sample in proximity to used samples

Usage

1
rf_sampling(x, dat, nsamps, nt, maxnt, proj, ras)

Arguments

x

list of data.frames containing 'Month','Year','Spp'

dat

data.frame of relocation data

nsamps

multiplier, number of used locations times nsamps = number available locations

nt

mean step length times nt = minimum distance to sample from

maxnt

mean step length times nt times maxnt = maximum distance to sample from

proj

proj4string of point data

ras

raster grid to sample from

Value

Returns a list containing a report on the sampling and the used/available samples

Examples

1
system.time({ sampout<-lapply(d[1],rf_sampling,dat=df,nsamps=2,nt=5,maxnt=5,proj=dfproj,ras=nras) })

MovingUngulate/DEERP documentation built on May 3, 2019, 8:34 p.m.