Skip to contents

This is a utility function which allows to user to query about the existing possibilities of a given filter name

Usage

aims_filter_values(target, filter_name)

Arguments

target

A character vector of length 1 specifying the dataset. Only weather or temp_loggers are currently allowed.

filter_name

A character string containing the name of the filter. Must be "site", "subsite", "series", or "parameter". See details.

Value

Either a data.frame if filter_name = "series", else a charactervector.

Details

For a full description of each valid filter_name see ?aims_expose_attributes. In the temperature logger dataset, "subsite" is equivalent to "series"; moreover, note that there is only one parameter being measured (i.e. water temperature), so the "parameter" filter contains one single value.

Author

AIMS Datacentre [email protected]

Examples

if (FALSE) {
library(dataaimsr)
aims_filter_values("weather", filter_name = "site")
aims_filter_values("temp_loggers", filter_name = "subsite")
}