View source: R/filter_by_bbox.R
filter_by_bbox | R Documentation |
Filters FORCIS data by a spatial bounding box.
filter_by_bbox(data, bbox)
data |
a |
bbox |
an object of class |
A tibble
containing a subset of data
for the desired bounding
box.
# Import example dataset ----
file_name <- system.file(file.path("extdata", "FORCIS_net_sample.csv"),
package = "forcis")
net_data <- read.csv(file_name)
# Dimensions of the data.frame ----
dim(net_data)
# Filter by oceans ----
net_data_sub <- filter_by_bbox(net_data, bbox = c(45, -61, 82, -24))
# Dimensions of the data.frame ----
dim(net_data_sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.