pas_isEmpty: Test for an empty _pas_ object

View source: R/utils-pas.R

pas_isEmptyR Documentation

Test for an empty pas object

Description

Convenience function for nrow(pas) == 0. This makes for more readable code in functions that need to test for this.

Usage

pas_isEmpty(pas = NULL)

Arguments

pas

A PurpleAir_synoptic object.

Value

TRUE if no data exist in pas, FALSE otherwise.

Examples

library(AirSensor2)
example_pas_pm25 %>% pas_isEmpty() %>% print()
example_pas_pm25 %>% pas_filter(latitude > 90) %>% pas_isEmpty() %>% print()

MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.