You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
381 B
R
10 lines
381 B
R
7 years ago
|
# 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)
|
||
7 years ago
|
|
||
|
plot(measurements~time, ts)
|
||
|
plot(measurements_per_minute~time, ts)
|