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

Yuki maatregelen #37

Merged
merged 44 commits into from
Dec 3, 2019
Merged

Yuki maatregelen #37

merged 44 commits into from
Dec 3, 2019

Conversation

yuki-nmi
Copy link
Contributor

@yuki-nmi yuki-nmi commented Nov 18, 2019

A script to choose top 3 measures is added. The script includes 2 function: 'obic_evalmeasure' (to quantify effects of 11 measures) and 'obic_recommendations' (to choose top 3 measures). A table is also added in which expert-judgement of effects of measures are defined (maatregel_obic.Rdata).
To be solved: many temporal auxiliary variables are added as columns (and many of them are deleted within the script), making many warning messages. They need to be nullified (?) in the begining.

Comment Gerard, 3-12-19
i rewrote this function, more in a data.table style;
the former one makes multiple new columns while looping throught the measures and indices.
by using dcast and melt it makes the script simpler, easier to understand / test / evaluate.
and likely also faster.

one attention point: for some reason the measure.obic.Rdata is not recognized in namespace when checked.

Comment update

  • tables are updated, functions are consequently adapted and checked

@yuki-nmi yuki-nmi changed the title Yuki maatregelen WIP: Yuki maatregelen Nov 18, 2019
@yuki-nmi yuki-nmi changed the title WIP: Yuki maatregelen Yuki maatregelen Nov 19, 2019
@yuki-nmi
Copy link
Contributor Author

Variables are nullified.
'data/maatregel_obic.Rdata' still needs to be changed into 'data/maatregel_obic.RData'

@yuki-nmi yuki-nmi closed this Nov 19, 2019
@yuki-nmi yuki-nmi reopened this Nov 19, 2019
@yuki-nmi yuki-nmi requested a review from SvenVw November 19, 2019 08:41
@SvenVw SvenVw mentioned this pull request Nov 29, 2019
R/obic_score.R Outdated Show resolved Hide resolved

# Merge soil and crop categories to dt.score ---------------------------------------
# Make an additional category for loess
soils.obic[soiltype == 'loess', soiltype.n := 'loess']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is loess not already part of soils.obic? should be, isn't?

@SvenVw SvenVw merged commit 5f71c23 into master Dec 3, 2019
@SvenVw SvenVw deleted the yuki_maatregelen branch May 5, 2021 13:31
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.

None yet

3 participants