Compatibility alias matching the RCamelsPE::read_attributes() interface,
powered by the high-performance 'arrow' and 'collapse' backend of rcamelspe.
Usage
read_attributes(
type = "all",
gauge_id = NULL,
vars = NULL,
path = get_camels_pe_path()
)Arguments
- type
Character string. Attribute group to read. One of
"topographic","climatic","hydrological","landcover","geologic","soil","human_intervention", or"all". Default is"all".- gauge_id
Character vector or
NULL. Optional gauge identifiers.- vars
Character vector or
NULL. Optional variable names to retain.- path
Character string. Optional path to the CAMELS-PE root directory.
Examples
# Read all attributes using RCamelsPE compatible syntax
attrs <- read_attributes(type = "topographic")
head(attrs)
#> gauge_id area perimeter elev_min elev_max elev_mean elev_median
#> 1 PE_472A9204 9187.868 283.757 2762.00 6317.23 4210.225 4215.969
#> 2 PE_210003 2008.790 230.042 4311.50 6030.24 4659.078 4620.180
#> 3 PE_204617 13224.802 1958.796 685.17 6414.83 4213.036 4495.940
#> 4 PE_472935F2 9576.154 98.688 2144.00 6317.23 4196.945 4207.877
#> 5 PE_210406 2867.025 163.709 3825.50 5425.87 4467.149 4451.980
#> 6 PE_270503 390.800 148.869 3825.43 4616.46 3990.867 3953.976
#> slope_mean
#> 1 11.325
#> 2 17.753
#> 3 12.651
#> 4 11.486
#> 5 3.240
#> 6 3.965