knitr::opts_chunk$set(echo = TRUE) library(telemetRy)
This is a package for interacting with telemetry data using R. Functions for analyzing telemetry data over various timescales are provided. These tools were developed primarily for working with telemetry datasets generated by Data Sciences International (DSI) hardware and exported from Ponemah software.
Note: the author of this package has no affiliation with DSI.
telemetRy is available on github. To install telemetRy, you'll need:
R > 3.2
devtools package from
Hadley Wickham
First, install devtools:
install.packages('devtools')
Then install and load telemetRy:
devtools::install_github(repo = 'andrewstiegler/telemetRy') library(telemetRy)
This package comes with a sample dataset generated using a DSI telemetry system.
head(sample_BP_data)
From this dataset, to calculate telemetry data for a typical day:
sample_typical_day <- typical_day(data = sample_BP_data, lights_on = 6)
Or to calculate the average data when room lights are off or on:
# Output of circadian_avg is a list, select first list element for lights off sample_lights_off <- circadian_avg(data = sample_BP_data, lights_on = 6)[[1]] # Select second element for lights on sample_lights_on <- circadian_avg(data = sample_BP_data, lights_on = 6)[[2]]
To see an example of using this package with your own DSI data, check out the vignette Importing DSI data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.