pas_isEmpty {AirSensor}R Documentation

Test for an empty pa_synoptic 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)

Arguments

pas

A pa_synoptic object.

Value

TRUE if no data exist in pas, FALSE otherwise.

Examples

pas <- example_pas
pas_isEmpty(pas)
pas <- pas %>% pas_filter(ID < 0)
pas_isEmpty(pas)

[Package AirSensor version 1.0.8 Index]