update_gate | R Documentation |
Updates a gate vector
update_gate(xp, polygon, gate_vector = rep(0, nrow(xp)), value = 1)
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 |
The updated gate_vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.