Filters FORCIS data by month of sampling.
Examples
# Attach the package ----
library("forcis")
# Import example dataset ----
file_name <- system.file(file.path("extdata", "FORCIS_net_sample.csv"),
package = "forcis")
net_data <- read.table(file_name, dec = ".", sep = ";")
# Add 'data_type' column ----
net_data$"data_type" <- "Net"
# Dimensions of the data.frame ----
dim(net_data)
#> [1] 2451 77
# Filter by months ----
net_data_sub <- filter_by_month(net_data, months = 1:2)
# Dimensions of the data.frame ----
dim(net_data_sub)
#> [1] 305 77