R/setLabel.R

Defines functions setLabel

Documented in setLabel

#' Add label to a vector
#' @param x a vector
#' @param label string
#' @return a labelled vector
#' @export
setLabel=function(x,label=""){
     attr(x,"label")=label
     x
}

Try the autoReg package in your browser

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

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.