R/last_element.R

Defines functions last_element

Documented in last_element

#' get the last element of a vector
#' @param .x vector
#' @examples last_element(c(1:10))
#' @export

last_element <- function(.x){
  return(.x[length(.x)])
}
ElodiePlan/elopage documentation built on June 7, 2017, 12:01 a.m.