Learn R Programming

AirSensor (version 1.0.8)

sensor_isEmpty: Test for an empty sensor object

Description

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

Usage

sensor_isEmpty(sensor)

Arguments

sensor

sensor object

Value

TRUE if no data exist in sensor, FALSE otherwise.

Examples

Run this code
# NOT RUN {
example_sensor <- pat_createAirSensor(example_pat)
sensor_isEmpty(example_sensor)

# }

Run the code above in your browser using DataLab