Get distinct params, locations, and datasets from a mudata object

distinct_params(x, ...)

# S3 method for default
distinct_params(x, table = "data", ...)

distinct_locations(x, ...)

# S3 method for default
distinct_locations(x, table = "data", ...)

distinct_datasets(x, ...)

# S3 method for default
distinct_datasets(x, table = "data", ...)

distinct_columns(x, ...)

# S3 method for default
distinct_columns(x, table = names(x), ...)

# S3 method for mudata
src_tbls(x, ...)

Arguments

x

A mudata object

...

Passed to other methods

table

The table to use to calculate the distinct values. Using the "data" table is safest, but for large datasets that are not in memory, using the meta table (params, locations, or datasets) may be useful.

Value

A character vector of distinct parameter names

Examples

distinct_params(kentvillegreenwood)
#> [1] "cooldegdays" "dirofmaxgust" "heatdegdays" "maxtemp" "meantemp" #> [6] "mintemp" "snowongrnd" "spdofmaxgust" "totalprecip" "totalrain" #> [11] "totalsnow"
distinct_locations(kentvillegreenwood)
#> [1] "GREENWOOD A" "KENTVILLE CDA CS"
distinct_datasets(kentvillegreenwood)
#> [1] "ecclimate"