Update splnr_get_IUCNRedList.R#142
Merged
jaseeverett merged 4 commits intoSpatialPlanning:mainfrom Nov 20, 2025
Merged
Conversation
but still doesn't work
Updates were generally to ensure that the functions could use SpatRaster and sf as arguments. Also, the challenge is that with sf all the target info can be in the sf dataframe, whereas it cannot with SpatRaster. I have thus tried to standardise to have a target dataframe, which can be updated with the targets from splnr_targets_byInverseArea() and splnr_targets_byIUCN2() (or other functions). 1. Rewritten splnr_targets_byInverseArea() to take SpatRaster as arugments 2. Included examples of using both sf and SpatRaster as inputs for splnr_targets_byInverseArea 3. I could not get splnr_targets_byIUCN(), so created splnr_targets_byIUCN2(), which now is simpler and works with sf and SpatRaster. 4. Included examples of using both sf and SpatRaster as inputs for splnr_targets_byIUCN2() 5. Have included the new function combine_IUCN_InverseArea_targets() that combines the df outputs from splnr_targets_byIUCN2() and splnr_targets_byInverseArea()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
but still doesn't work