View source: R/dsmartr_unstack.R
| most_likely | R Documentation | 
This function takes the outputs of collate and extracts the top
n most-likely soil maps. Optionally, their respective probability
surfaces are also extracted.
most_likely(dsmart_preds = NULL, dsmart_probs = NULL, n_maps = 2L)
dsmart_preds | 
 RasterBrick; output   | 
dsmart_probs | 
 RasterBrick; output   | 
n_maps | 
 integer; the number of most-probable maps desired.  | 
A list containing n_maps most-likely-soils maps, from most to
least probable. Optionally; n_maps probability surfaces associated
with most_likely_maps follow.
All outputs are written to disk as GeoTIFFs.
## Not run: 
# run collate() example code, then:
most_likely_soil <-
 most_likely(dsmart_preds = collated[['dsmartr_predictions']],
             dsmart_probs = collated[['dsmartr_probabilities']],
             n_maps = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.