Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
* `enhanced` - `sample_strat()` - added parameter `method` that allows users to choose between `"Queinnec"` (default method implemented in previous sgsR versions) and `"random"` (stratified random sampling). The random method ignores much of the functionality of the algorithm to allow users to use standard stratified random sampling approaches without the use of a focal window to locate contiguous stratum cells.

* `fixed` - `sample_strat()` factor handling improvement - GitHub issue #18

* `enhanced` -  `calculate_allocation()` improved documentation for output data frame to make attributes more clear.

* `fixed` - `calculate_representation()` will now not plot bar chart twice & `NA` values in existing will not be removed.

* `fixed` - `existing` samples with other attributes will now not break sampling using `sample_ahels() / sample_clhs()` if values are `NA`. Variables are also added back to the sample output
  • Loading branch information
tgoodbody committed Jul 19, 2022
1 parent a6a5fcf commit c3604d9
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 181 deletions.
10 changes: 7 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
* `enhanced` - `calculate_allocation()` improved documentation for output dataframe to make attributes more clear.
# sgsR 1.1.0

* `enhanced` - `sample_strat()` - added parameter `method` that allows users to choose between `"Queinnec"` (default method implemented in previous sgsR versions) and `"random"` (stratified random sampling). The random method ignores much of the functionality of the algorithm to allow users to use standard stratified random sampling approaches without the use of a focal window to locate contiguous stratum cells.

* `fixed` - `sample_strat()` factor handling improvement - GitHub issue #18

* `enhanced` - `calculate_allocation()` improved documentation for output data frame to make attributes more clear.

* `fixed` - `calculate_representation()` will now not plot bar chart twice & `NA` values in existing will not be removed.

Expand Down Expand Up @@ -26,8 +32,6 @@

# sgsR 0.1.5



* `strat_map()` can now map categorical srasters (gave an error before). Now also returns the categories associated with the categorical rasters in the lookup table with `details = TRUE`.

* Altered error handling for raster masking to be within `mask_access()` instead of individual sampling functions.
Expand Down
Loading

0 comments on commit c3604d9

Please sign in to comment.