ncss-tech / soilReports

An R package that assists with the setup and operation of a collection of soil data summary, comparison, and evaluation reports. These reports are primarily used by USDA-NRCS soil scientists in both initial and update mapping.
15 stars 5 forks source link

test for invalid musym in mu.set #65

Closed dylanbeaudette closed 7 years ago

dylanbeaudette commented 7 years ago

Problems occur when/if an invalid (e.g. missing, typo, correlated-to-something-else) musym is specified in the mu.set variable, from config.R. This isn't common, but could happen during progressive mapping or when a map unit has been "correlated away".

Solution: new function to remove invalid symbols and set factor levels accordingly.

Related: factor levels should be preserved in a more consistent manner.

brownag commented 7 years ago

c21945c8c767976d97dd2e914e9604245ad55250