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

site normalization fixes #192

Merged
merged 3 commits into from
Jan 22, 2021
Merged

site normalization fixes #192

merged 3 commits into from
Jan 22, 2021

Conversation

brownag
Copy link
Member

@brownag brownag commented Jan 21, 2021

Closes #171 (which still needs a working example, see #172), also uses data.table .SD style syntax to replace iteration by ddply #157.

Adds a new warning if you specify a problematic formula to site<- -- i.e. one that does not produce a result that is 1:1 with the existing site table / profile ID / profile_id()-- leaving data unchanged.

This is hopefully OK and sufficient to explain to users who might have expected the horizon var to move to site.

Also, I believe it adds 7 tests which should put us... over 1000!

@brownag brownag merged commit 3b3d848 into master Jan 22, 2021
brownag added a commit that referenced this pull request Jan 22, 2021
brownag added a commit that referenced this pull request Jan 22, 2021
* proper data.table generalization of #171 #192

* Revert main change in #194

* cleanup
@brownag brownag deleted the siteNormalization branch January 22, 2021 20:16
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.

site(d) <- results in corrupt profiles
2 participants