R/types.castAny.R

Defines functions types.castAny

Documented in types.castAny

#' @title Cast any value
#' @description Cast any value
#' @param format any format is accepted
#' @param value any value to cast
#' @rdname types.castAny
#' @export
#' @details Any type or format is accepted.
#' @seealso \href{https://specs.frictionlessdata.io//table-schema/#any}{Types and formats specifications}
#' 
#' @examples 
#' 
#' types.castAny(format = "default", value = 1)
#' 
#' types.castAny(format = "default", value = "1")
#' 
#' types.castAny(format = "default", value = "")
#' 
#' types.castAny(format = "default", value = TRUE)
#' 

types.castAny <- function(format, value) {
  return(value)
}

Try the tableschema.r package in your browser

Any scripts or data that you put into this service are public.

tableschema.r documentation built on Sept. 30, 2022, 1:06 a.m.