R/SAStype.R

#' @export
SAStype <- function(x, default)
  UseMethod("SAStype")


#' @export
SAStype.default <- function(x, default=NULL)
{
  lab <- attr(x,"SAStype")
  if(is.null(lab))
    default
  else
  lab
}


#' @export
"SAStype<-" <- function(x, value)
  UseMethod("SAStype<-")


#' @export
"SAStype<-.default" <- function(x, value)
{
  attr(x,'SAStype') <- makeSASNames(value)
  x
}

Try the SASxport package in your browser

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

SASxport documentation built on May 2, 2019, 4:51 p.m.