R/remove_names.R

Defines functions remove_names

Documented in remove_names

#' Remove names of an object
#'
#' @param x An object, which have attribute "names"
#'
#' @return The same object without names.
#' @export
#'
#' @examples
#' obj <- c(a = 1)
#' obj
#'
#' remove_names(obj)
#'
remove_names <- function(x) {
    names(x) <- NULL
    x
}
GegznaV/spMisc documentation built on April 26, 2020, 5:59 p.m.