View source: R/prune_simple_basis.R
prune_simple_basis | R Documentation |
Pruning for regular grids of bi-square basis functions in flat 2D space
prune_simple_basis(pres.locs, simple.bfs, min.points = 1)
pres.locs |
a data frame or matrix of 2 columns describing the horizontal and vertical coordinate locations for presence locations on which to base pruning. |
simple.bfs |
a data frame of class |
min.points |
Optional. a postive integer describing the least number of points required within each basis function for it to be retained in the pruning. Default is 1, meaning all basis functions with no points within their radius are pruned. |
a simple basis data frame of class 'bf.df' pruned to the presence locations provided. Consisting of columns: horizontal axis location, vertical axis location, scale (radius), res (resolution id).
#' # Base the basis function nodes on the locations of presence records and quadrature
dat <- dat <- gorillas
bfs <- simple_basis(nodes.on.long.edge = 9, data = dat)
pruned.bfs <- prune_simple_basis(dat[dat$pres == 1, c("x", "y")], bfs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.