inst/demopkg/R/median_first_ten.R

#' Annoyingly return the median of the first 10 elements of a vector
#'
#' @param data A dataframe.
#'
#' @importFrom utils head tail
#' @importFrom tools toTitleCase
#' @import tools
#'
#' @export

median_first_ten <- function(x) {

  first_ten <- head(x, 10)

  print(toTitleCase("hello there"))

  stats::median(first_ten)
}

Try the suggests package in your browser

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

suggests documentation built on Aug. 8, 2023, 5:13 p.m.