# example data, similar to results from soilDB::fetchOSD(..., extended = TRUE)
data("OSDexamples")
# no clustering of the geomorphic proportion matrix
h <- hydOrder(OSDexamples$hillpos, g = 'hillpos', clust = FALSE)
# compare with original order
data.frame(
original = OSDexamples$hillpos$series,
ordered = h
)
# cluster results
h <- hydOrder(OSDexamples$hillpos, g = 'hillpos', clust = TRUE)
str(h)
Run the code above in your browser using DataLab