The goal of sleeprutil is to facilitate data aggregation into the redcap database used for the NIH funded SLEEPR grant.
Changes to these files are required when updates are made to the underlying Redcap database where the SLEEPR data is stored.
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("jskufca/sleeprutil")
The PAL device will record activity information, which can then be output as a .csv file. That file will need to be processed so that it is in the proper templated format for the Redcap database.
Suppose the data is stored in file this_pal.csv
. Then executing the
following code:
library(sleeprutil)
template_pal_data()
Will open a dialogue box that allows the user to select the PAL file. The function will then create an associated csv file, stored as
{this_pal_templated.csv}
The oximetry data is typically provided as a pdf file. Suppose this file
is named this_oxi.pdf
. Then executeing the following code:
template_oxi_data()
Will open a dialogue box that allows the user to select the oxi pdf file. The function will then create an associated csv file, stored as
{this_oxi_templated.csv}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.