update_gate: Updates a gate vector

Description Usage Arguments Value

View source: R/hypergate.R

Description

Updates a gate vector

Usage

1
update_gate(xp, polygon, gate_vector = rep(0, nrow(xp)), value = 1)

Arguments

xp

A two colums matrix

polygon

A list with two components x and y of equal lenghts and numeric values

gate_vector

a vector of length nrow(xp) with integer values

value

The number that will be assigned to gate_vector, corresponding to points that lie in the polygon

Value

The updated gate_vector


ebecht/hypergate documentation built on March 9, 2020, 4:05 p.m.