R/last_element.R

#' get the last element of a vector
#' @param .x vector
#' @examples
#' last_element(c(1, 7, 6, 4))
#' @export
last_element <- function(.x) {
  secret_function()
  return(.x[length(.x)])
}
dpastoor/pagev1 documentation built on May 29, 2019, 4:51 p.m.