
Check whether a value is within the recommended illuminance/MEDI levels by Brown et al. (2022)
Source:R/Brown.R
Brown_check.RdThis is a lower level function. It checks a given value against a threshold
for the states given by Brown et al. (2022). The function is vectorized. For
day the threshold is a lower limit, for evening and night the threshold
is an upper limit.
Usage
Brown_check(
value,
state,
Brown.day = "day",
Brown.evening = "evening",
Brown.night = "night",
Brown.day.th = 250,
Brown.evening.th = 10,
Brown.night.th = 1
)Arguments
- value
Illuminance value to check against the recommendation. needs to be numeric, can be a vector.
- state
The state from Brown et al. (2022). Needs to be a character vector with the same length as
value.- Brown.day, Brown.evening, Brown.night
The names of the states from Brown et al. (2022). These are the default values (
"day","evening","night"), but can be changed if the names instateare different. Needs to be a character scalar.- Brown.day.th, Brown.evening.th, Brown.night.th
The thresholds for the states from Brown et al. (2022). These are the default values (
250,10,1), but can be changed if the thresholds should be different. Needs to be a numeric scalar.
Value
A logical vector with the same length as value that indicates
whether the value is within the recommended illuminance levels.
See also
Other Brown:
Brown2reference(),
Brown_cut(),
Brown_rec(),
sleep_int2Brown()