R/is_ARPALdf_AQ.R

Defines functions is_ARPALdf_AQ

Documented in is_ARPALdf_AQ

#' Check if a given object belongs to class 'ARPALdf_AQ'
#'
#' @description 'is_ARPALdf_AQ' checks if the input object belongs to the class 'ARPALdf_AQ'
#'
#' @param Data Object to check if the class of a dataframe is 'ARPALdf_AQ', i.e. ARPAL
#' dataframe for air quality data.
#'
#' @return The function returns 'True' if the object is of class 'ARPALdf_AQ' and it returns 'False' if the
#'     object isn't of class 'ARPALdf_AQ'
#'
#' @examples
#' d <- get_ARPA_Lombardia_AQ_registry()
#' is_ARPALdf_AQ(d)
#'
#' @export

is_ARPALdf_AQ <- function(Data) {
  is.element("ARPALdf_AQ", attr(Data,"class"))
}

Try the ARPALData package in your browser

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

ARPALData documentation built on Sept. 11, 2024, 9:24 p.m.