shift_values_range: shift_values_range

View source: R/filter_dates.R

shift_values_rangeR Documentation

shift_values_range

Description

shift values for specific regions

Usage

shift_values_range(dat, shift)

Arguments

dat

data.table to filter (name, datetime)

shift

data.table of filter start and end times (name, start, end)

Details

#=============================================================================== #' @title filter_dates #' #' @description remove values from a data.table (non-equi join filter) #' #' @author Jonathan Kennel jkennel@uoguelph.ca #' #' @param dat data.table to filter (name, datetime) #' @param filt data.table of filter start and end times (start, end) #' #' @return filtered data.table #' #' @export #=============================================================================== filter_dates <- function(dat, filt)

dat[!J(filt), on = .(name, datetime >= start, datetime <= end)]

Value

data.table with shifted values

Author(s)

Jonathan Kennel jkennel@uoguelph.ca


jkennel/rbr documentation built on Feb. 15, 2023, 1:37 a.m.