coverage | R Documentation |
Only applicable to non-reactive sensors with 'continuous' sampling
coverage(
db,
participant_id,
sensor = NULL,
frequency = mpathsenser::freq,
relative = TRUE,
offset = "None",
start_date = NULL,
end_date = NULL,
plot = deprecated()
)
A ggplot of the coverage results if plot
is TRUE
or a tibble containing the
hour, type of measure (i.e. sensor), and (relative) coverage.
## Not run:
freq <- c(
Accelerometer = 720, # Once per 5 seconds. Can have multiple measurements.
AirQuality = 1,
AppUsage = 2, # Once every 30 minutes
Bluetooth = 60, # Once per minute. Can have multiple measurements.
Gyroscope = 720, # Once per 5 seconds. Can have multiple measurements.
Light = 360, # Once per 10 seconds
Location = 60, # Once per 60 seconds
Memory = 60, # Once per minute
Noise = 120,
Pedometer = 1,
Weather = 1,
Wifi = 60 # once per minute
)
coverage(
db = db,
participant_id = "12345",
sensor = c("Accelerometer", "Gyroscope"),
frequency = mpathsenser::freq,
start_date = "2021-01-01",
end_date = "2021-05-01"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.