lqi | R Documentation |
This function calculates the light quality index as described in Martinez-Nicolas et al. (2011).
lqi(lightVar, upper = 500, lower = 10, as_df = TRUE)
lightVar |
Numeric vector containing the light data. |
upper |
Single numeric value specifying the threshold of the bright light level. Defaults to 500 lx as described in Martinez-Nicolas et al. (2011). |
lower |
Single numeric value specifying the threshold of the dark light level. Defaults to 10 lx as described in Martinez-Nicolas et al. (2011). |
as_df |
Logical. Should the output be returned as a data frame? Defaults to TRUE. |
Should be calculated for the period from waking up to going to bed. Default threshold values are provided in photopic illuminance as per the original paper. To calculate the original metric make sure that 'lightVar' is photopic illuminance.
Data frame or numeric vector.
Martinez-Nicolas, A., Ortiz-Tudela, E., Madrid, J. A., & Rol, M. A. (2011). Crosstalk Between Environmental Light and Internal Time in Humans. Chronobiology International, 28(7), 617–629. https://doi.org/10.3109/07420528.2011.593278
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.