R/hard_sets.R

Defines functions hard_sets

Documented in hard_sets

#' Number of hard sets
#'
#' @param rpe A numeric vector of set RPE values.
#' @param cutoff RPE cutoff for what qualifies as a hard set.  The boundary is included.
#'
#' @returns A numeric value counting the number of hard sets.
#' @export
#'
#' @examples hard_sets(c(6, 7, 10, 9, NA))
hard_sets <- function(rpe, cutoff = 7) {
  sum(rpe >= cutoff, na.rm = T)
}

Try the strength package in your browser

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

strength documentation built on Feb. 25, 2026, 5:07 p.m.