determine_match_date: Determine a match date for the values to be retrieved from a...

View source: R/values.R

determine_match_dateR Documentation

Determine a match date for the values to be retrieved from a target dataset

Description

Determine a match date for the values to be retrieved from a target dataset

Usage

determine_match_date(
  id,
  date,
  data,
  tolerance_lower = 0,
  tolerance_upper = 0,
  id_var,
  date_var
)

Arguments

id

ID value for the target datset

date

date to be used for determining a matching date in the target dataset

data

target dataset

tolerance_lower

number of days to look for a matching target date in the past

tolerance_upper

number of days to look for a matching target date in the future

id_var

name of the ID variable in the target data

date_var

name of the date variable in the target data

Value

The closest matching date value in the target data for the given input date


ghxm/comPosition documentation built on Jan. 29, 2024, 6:57 p.m.