R/Title.R

Defines functions Title

Documented in Title

#' Add Title to Select qdap Plots
#' 
#' Add title to select qdap objects that store a plot.
#' 
#' @param object A select qdap object that stores a plot.
#' @param value The value to assign to title.
#' @rdname Title
#' @keywords title
#' @export
Title <- function(object) {
    attributes(object)[["title"]] 
}

#' @rdname Title
#' @export
"Title<-" <- function(object, value) {
    attributes(object)[["title"]] <- value
    object
}

Try the qdap package in your browser

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

qdap documentation built on May 31, 2023, 5:20 p.m.