Skip to content

Commit

Permalink
Merge branch 'non-numeric-decorana'
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed Jun 30, 2024
2 parents e42f93c + 2ac16cb commit 2466f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/decorana.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
ZEROEIG <- 1e-7 # same limit as in the C function do_decorana
## data
veg <- as.matrix(veg)
if (!is.numeric(veg))
stop("data must be numeric (no factors nor characters)")
if (any(veg < 0))
stop("'decorana' cannot handle negative data entries")
## optional data transformation
Expand Down

0 comments on commit 2466f4b

Please sign in to comment.