1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-22 23:23:57 +01:00
opensensmapR/tools/monitor/analyze.R

7 lines
313 B
R
Raw Normal View History

2017-08-13 16:11:02 +02:00
# create a working copy, so we cant accidentally loose all data
ts = osem_counts_ts
# compute our own measurements per minute, to check against the provided computation
ts$measurement_diff = c(diff(ts$measurements), 0)
ts$measurement_minute = ts$measurement_diff / c(as.numeric(diff(ts$time), unit = 'mins'), 0)