I have a data.table containing unit identifiers, a setting identifier, and a data range for which this setting is valid. I need to extract the settings for specific unit identifiers for a specific day. The following minimum working example shows how I would obtain the result. containing unit identifiers