Skip to content

Commit

Permalink
Fixed NA management issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TGuillerme committed Oct 12, 2023
1 parent d81f69c commit 0063b70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ roundness <- function(matrix) {
* `space.maker` can now generate specific row names and be replicated to generate a bunch of spaces (via the new optional arguments `elements.names` and `replicates` respectively).
* The `add.tree` utility function now has an optional argument to override any existing trees (`replace = TRUE`) or not (`replace = FALSE`; which remains the default previous behaviour).
* `print.dispRity` now recognises and highlights simulated data from the [`treats`](https://github.com/tguillerme/treats) package.
* Improved `NA` management for `S3` functions.

### BUG FIXES

Expand Down
2 changes: 1 addition & 1 deletion R/summary.dispRity_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get.summary <- function(disparity_subsets_rare, cent.tend, quantiles, ...) {
output <- list()

## Summarising NA
if(is.na(disparity_subsets_rare[[1]])) {
if(all(is.na(disparity_subsets_rare))) {
if(!missing(cent.tend)) {
output$cent.tend <- NA
}
Expand Down

0 comments on commit 0063b70

Please sign in to comment.