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

sensor_isEmpty(sensor)

Arguments

sensor

sensor object

Value

TRUE if no data exist in sensor, FALSE otherwise.

Examples

example_sensor <- pat_createAirSensor(example_pat)
sensor_isEmpty(example_sensor)
#> [1] FALSE