R/getFunctionName.R

Defines functions getFunctionName

Documented in getFunctionName

#' @title Get the name of a function
#' 
#' @description Returns the name of the input function as a character string
#' 
#' @param fcn - function name as an expression
#' 
#' @return function name as character string
#'
#'@export
#'
getFunctionName<-function(fcn) {
    str<-deparse(substitute(fcn,sys.frame(sys.parent())));
    return(str);
}
wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.