crt_buff: Reassign points based on distance to cluster boundaries

Description Usage Arguments Value

View source: R/crt_buff.R

Description

This function takes simple features points and polygon file. It reassigns the points file to the intervention and id number of the cluster.

Usage

1
crt_buff(points, poly, distance = 50, trt, trt_value, id)

Arguments

points

simple feature points locations of data

poly

simple feature polygons of cluster boundaries

distance

distance of buffer for cluster in metres

trt

names of the intervention of treatment variable

trt_value

value of the treatment to to buffer for

id

name of id variable

Value

spatial points file with new ids and treatment variables


jarvisc1/cluster_adjuster documentation built on March 9, 2020, 12:15 a.m.