update_gate: Updates a gate vector

View source: R/hypergate.R

update_gateR Documentation

Updates a gate vector

Description

Updates a gate vector

Usage

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


hypergate documentation built on Aug. 31, 2023, 5:12 p.m.