Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and new tools for working with uncode, factors, and NASIS metadata #254

Merged
merged 9 commits into from
Jul 1, 2022

Conversation

brownag
Copy link
Member

@brownag brownag commented Jun 29, 2022

RE: #241

  • Export get_NASIS_metadata()--pulls some more of the new logic from uncode() related to caching of results, and adds to result from pre-existing internal function .get_NASIS_metadata()
  • Add get_NASIS_column_metadata() for quickly subsetting the NASIS metadata table based on various constraints. Provides "easy" access to the metadata for use in functions that need to perform specific operations on domains/values/labels/names/sequences etc.

RE: #242

  • Addresses column names used in get_cosoilmoist_from_SDA() result for soil moisture state and top/bottom depths (L, RV, H); "status" -> "soimoiststat", "dep[tb]_[lrh]" -> "soimoistdep[tb]_[lrh]"
    RE: Data loss when using uncode() #253

  • Fixes problems with uncode() and .cosoilmoist_prep() (and other SDA functions using similar factor logic) reported by @monikashea

  • Also adds some simple tests for uncode() and code() with and without NASISDomainsAsFactor(TRUE)

@brownag brownag force-pushed the factorsETC branch 2 times, most recently from b0d1852 to f861a1f Compare June 29, 2022 19:06
@brownag brownag changed the title Fixes and new tools for working with uncode, factors, and NASIS metadatas Fixes and new tools for working with uncode, factors, and NASIS metadata Jun 29, 2022
@brownag brownag linked an issue Jun 29, 2022 that may be closed by this pull request
@dylanbeaudette
Copy link
Member

Nice. Thanks for addressing these.

@brownag brownag marked this pull request as ready for review July 1, 2022 19:27
@brownag
Copy link
Member Author

brownag commented Jul 1, 2022

Tested and confirmed to fix several instances where uncode() was not working for db="lims" type data due to recent changes in 2.7.x.

@brownag brownag merged commit a00f054 into master Jul 1, 2022
@brownag brownag deleted the factorsETC branch July 1, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data loss when using uncode()
2 participants