sweep_: Create a basic sweep function

Description Usage Arguments Value

View source: R/sweep.R

Description

Create a basic sweep function

Usage

1
sweep_(df, xcol, ycol, weight = NULL, radius, inc_data = FALSE)

Arguments

df

the data frame containing coordinates

xcol

the name of the column containing the x coordinate

ycol

the name of the column containing the y coordinate

weight

name of column containing data with which to weight the points

radius

the radius of the circle to sweep with (in metres)

inc_data

logical. Whether or not to include the original data alongside the indices of the points included in each circle

Value

a function with two arguments

dist_fun

The function to use to calculate distance between points

crs_transform

Whether or not xcol and ycol are latlons, and need to be transformed to coordinate projection


gtm19/angularsweep documentation built on July 27, 2020, 2 p.m.