Process Data from Wearable Light Loggers and Optical Radiation Dosimeters
Create a Date column in the dataset
Create Datetime bins for visualization and calculation
Create reference data from other data
Create a (shifted) sequence of Datetimes for axis breaks
Find or set sensible limits for Datetime axis
Convert Datetime columns to Time columns
Calculate duration of data in each group
Filter multiple times based on a list of arguments.
Filter Datetimes in a dataset.
Filter Times in a dataset.
Frequency of crossing light threshold
Plot a heatmap across days and times of day
Import a light logger dataset or related data
Import data that contain Datetimes
of Statechanges
Interdaily stability (IS)
Adds a state column to a dataset from interval data
Intradaily variability (IV)
Calculate mean daily metrics from daily summary
Pulses above threshold
Add states to a dataset based on groups and start/end times
Create a Time-of-Day column in the dataset
Aggregate dates to a single day
Aggregate Datetime data
Circadian lighting metrics from Barroso et al. (2014)
Brightest or darkest continuous period
Check whether a value is within the recommended illuminance/MEDI level...
Create a state column that cuts light levels into sections by Brown et...
Set the recommended illuminance/MEDI levels by Brown et al. (2022)
Add Brown et al. (2022) reference illuminance to a dataset
Centroid of light exposure
Counts the Time differences (epochs) per group (in a grouped dataset)
create_Timedata
Disparity index
Determine the dominant epoch/interval of a dataset
Calculate the dose (value·hours)
Handle jumps in Daylight Savings (DST) that are missing in the data
Get a summary of groups where a daylight saving time change occurs.
Duration above/below threshold or within threshold range
Exponential moving average filter (EMA)
Find and extract clusters from a dataset
Extract gap episodes from the data
Add metrics to extracted sSummary
Extract summaries of states
Check for and output gaps in a dataset
Fill implicit gaps in a light logger dataset
Tabular summary of data and gaps in all groups
Create a gapless sequence of Datetimes
Create a simple Time-of-Day plot of light logger data, faceted by Date
Create a simple datetime plot of light logger data, faceted by group
Double Plots
Visualize gaps and irregular data
Plot an overview of dataset intervals with implicit missing data
Add photoperiods to gg_day() or gg_days() plots
Add states to gg_day() or gg_days() plots
Does a dataset have implicit gaps
Does a dataset have irregular data
Adjust device imports or make your own
Join similar Datasets
LightLogR: Process Data from Wearable Light Loggers and Optical Radiat...
Get the import expression for a device
Add a defined number to a numeric and log transform it
Calculate mean daily metrics from Time Series
Midpoint of cumulative light exposure.
Normalize counts between sensor outputs
Number non-consecutive state occurrences
Performance metrics for circadian response
Non-visual circadian response
Cumulative non-visual direct response
Non-visual direct response
Length of longest continuous period above/below threshold
Calculate photoperiod and boundary times
Pipe operator
Remove groups that have too few data points
Create a reverse transformation function specifically for date scales
Statechange (sc) Timestamps to Intervals
Recode Sleep/Wake intervals to Brown state intervals
Integrate spectral irradiance with optional weighting
Reconstruct spectral irradiance from sensor counts
Summarize numeric columns in dataframes to means
Get all the supported devices in LightLogR
Scale positive and negative values on a log scale
Find threshold for given duration
Mean/first/last timing above/below threshold.
Import, processing, validation, and visualization of personal light exposure measurement data from wearable devices. The package implements features such as the import of data and metadata files, conversion of common file formats, validation of light logging data, verification of crucial metadata, calculation of common parameters, and semi-automated analysis and visualization.
Useful links