lh_proximity: Find the closest df2 value (or date) to df1 value

View source: R/collectedfunctions.R

lh_proximityR Documentation

Find the closest df2 value (or date) to df1 value

Description

Find the closest df2 value (or date) to df1 value

Usage

lh_proximity(df1, df2, direction = "<")

Arguments

df1

fixed vector

df2

relative vector

direction

keep df2 value equal to or smaller than df1 value (<)

diff

output differences between df1 and the closest df2


leonpheng/lhtool2 documentation built on April 13, 2025, 5:42 p.m.