path <- get_examples_path(file_type = "xml")
# Read from a usms file (soils used in a USM):
soil_list <- get_soils_list(file = file.path(path, "usms.xml"))
# Read from a soil file (all soil types available in a soil file)
soil_list <- get_soils_list(file = file.path(path, "sols.xml"))
soil_list <- get_soils_list(file = file.path(path, "usms.xml"),
soil = c("solcanne", "sole"))
Run the code above in your browser using DataLab