R/obj_to_string.R

Defines functions obj_to_string

Documented in obj_to_string

#' Return an object name as a string
#'
#' @description Return an object name as a string.
#'
#' @param x An R object
#'
#' @return A character single value with the name of the R object.
#'
#' @export
#'
#' @examples
#'
#' x <- rnorm(100)
#'
#' obj_to_string(x)
#'

obj_to_string <- function(x){

  deparse(substitute(x))

}
vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.