R/is_ARPALdf_AQ_mun.R

Defines functions is_ARPALdf_AQ_mun

Documented in is_ARPALdf_AQ_mun

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

is_ARPALdf_AQ_mun <- function(Data) {
  is.element("ARPALdf_AQ_mun", 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. 26, 2023, 5:07 p.m.