R/cpp11.R

Defines functions cpp_add_months cpp_which_first_gap cpp_roll_time_threshold cpp_roll_growth_rate cpp_roll_count_na cpp_roll_na_fill_grouped cpp_roll_na_fill cpp_is_whole_num cpp_diff

# Generated by cpp11: do not edit by hand

cpp_diff <- function(x, lag, order, run_lengths, fill, differences) {
  .Call(`_timeplyr_cpp_diff`, x, lag, order, run_lengths, fill, differences)
}

cpp_is_whole_num <- function(x, tol_, na_rm_) {
  .Call(`_timeplyr_cpp_is_whole_num`, x, tol_, na_rm_)
}

cpp_roll_na_fill <- function(x, fill_limit) {
  .Call(`_timeplyr_cpp_roll_na_fill`, x, fill_limit)
}

cpp_roll_na_fill_grouped <- function(x, o, sizes, fill_limit) {
  .Call(`_timeplyr_cpp_roll_na_fill_grouped`, x, o, sizes, fill_limit)
}

cpp_roll_count_na <- function(x, window, invert, partial) {
  .Call(`_timeplyr_cpp_roll_count_na`, x, window, invert, partial)
}

cpp_roll_growth_rate <- function(x, lag, log) {
  .Call(`_timeplyr_cpp_roll_growth_rate`, x, lag, log)
}

cpp_roll_time_threshold <- function(x, threshold, switch_on_boundary) {
  .Call(`_timeplyr_cpp_roll_time_threshold`, x, threshold, switch_on_boundary)
}

cpp_which_first_gap <- function(x, increment, left_to_right) {
  .Call(`_timeplyr_cpp_which_first_gap`, x, increment, left_to_right)
}

cpp_add_months <- function(date, num_months, roll_month) {
  .Call(`_timeplyr_cpp_add_months`, date, num_months, roll_month)
}

Try the timeplyr package in your browser

Any scripts or data that you put into this service are public.

timeplyr documentation built on April 3, 2025, 6:15 p.m.