R/ahsqc_label.R

Defines functions ahsqc_label

Documented in ahsqc_label

#' Creates a label or shows label
#' 
#' @param x data vector
#' @param value string, label value. If left NULL, returns label
#' @details Creates an empty data frame of nrows and ncols
#'
#'
#' @keywords AHSQC
#' @export
#' @examples
#' # Not run:

ahsqc_label <- function(x, value = NULL){
  if(!is.null(value)){
    attributes(x)$label <- value
    return(x)
  } 
  if(is.null(value)){
    out <- attributes(x)$label
    if(is.null(out)) out <- ""
    return(out)
  }
  ## making comment change just for testing purposes
}
thomasgstewart/ahsqc documentation built on Jan. 24, 2021, 11:19 a.m.