match_cdd_obs_site: Match observation CDDs to the closest value in a site of...

View source: R/match_cdd_obs_site.R

match_cdd_obs_siteR Documentation

Match observation CDDs to the closest value in a site of interest. The idea here is to say "given a bunch of observations from a range of locations, if I were to make that observation at a specific location, when would I make it?", assuming that CDD is interchangable between observed location and focal location.

Description

Match observation CDDs to the closest value in a site of interest. The idea here is to say "given a bunch of observations from a range of locations, if I were to make that observation at a specific location, when would I make it?", assuming that CDD is interchangable between observed location and focal location.

Usage

match_cdd_obs_site(obs_data, site_curve)

Arguments

obs_data:

data.frame with observations and CDD values

site_curve:

data.frame with a full CDD curve for a given site of interest

Value

The obs_data data.frame with the closest CDD and date from the


ecodata-technology/ecodatamisc documentation built on Feb. 13, 2024, 11:54 a.m.