View source: R/interval_join.R
interval_join | R Documentation |
Given one dataset where each row represents an interval at coarser scale (for example, one row per dive with dive start/end times), pull in summary information about finer-time-scale data. For example, add the max RL during each dive, or the median MSA during each dive.
interval_join(
x,
y,
start_x,
start_y,
end_x = start_x,
end_y,
suffix = c("", ".new"),
...,
keep = FALSE
)
x |
interval data frame or tibble (data with one row per dive, dive-cycle, day, etc.) Should have columns that provide start and end times of each interval; these can be date-times or any numeric time indicator |
y |
data frame at finer time-scale with information to summarize and pull into |
start_x |
name of variable with interval start times in |
start_y |
name of variable in |
end_x |
name of variable in |
end_y |
name of variable in |
suffix |
(Passed to |
... |
Additional arguments to pass to |
keep |
(Passed to |
A data.frame like the input interval dataset x
, but with additional columns for the new summarized variables
# Examples will go here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.