R/classDS.R

Defines functions classDS

Documented in classDS

#'
#' @title Returns the class of an object
#' @description This function is similar to R function \code{class}.
#' @details The function returns the class of an object
#' @param x a string character, the name of an object
#' @return the class of the input object
#' @author Stuart Wheater, for DataSHIELD Development Team
#' @export
#'
classDS <- function(x){

  x.val <- eval(parse(text=x), envir = parent.frame())

  # find the class of the input object
  out <- class(x.val)

  # return the class
  return(out)

}
#AGGREGATE FUNCTION
# classDS
datashield/dsBase documentation built on May 16, 2023, 10:01 p.m.