Brown_check: Check whether a value is within the recommended illuminance/MEDI levels by
Brown et al. (2022)
Description
This 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.
A logical vector with the same length as value that indicates
whether the value is within the recommended illuminance levels.
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 in state are 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.