View source: R/distance_grid.R
distance_grid | R Documentation |
create new features with distance from a reference grid
distance_grid(px, py, nx, ny)
px |
numeric vector of x coordinates |
py |
numeric vector of y coordinates |
nx |
numeric number or particions in x direction |
ny |
numeric number of partitions in y direction |
dataframe with point distances to grid
# distance_grid <- function(px = df$x, py = df$y, nx = 3, ny = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.