View source: R/filter_by_year.R
filter_by_year | R Documentation |
Filters FORCIS data by year of sampling.
filter_by_year(data, years)
data |
a |
years |
a |
A tibble
containing a subset of data
for the desired years.
# 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 years ----
net_data_sub <- filter_by_year(net_data, years = 1992)
# 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.