Giter Club home page Giter Club logo

Comments (1)

Rekyt avatar Rekyt commented on May 31, 2024

I've tested the robustness of geometry::convhulln() to the number of traits using the following code:

tr_df = matrix(rnorm(50*25), ncol = 25)

rownames(tr_df) = paste0("sp", 1:50)
colnames(tr_df) = paste0("tr", 1:25)

comp_chull = lapply(1:ncol(tr_df), function(x) {
  sub_tr = tr_df[, 1:x, drop = FALSE]
  
  tryCatch({
    geometry::convhulln(sub_tr, options = "FA")
    
    data.frame(n_tr = x, computable = TRUE)
  },
  error = function(cond) {
    data.frame(n_tr = x, computable = FALSE)
  })
})

Which gives the following results:

   n_tr computable
1     1      FALSE
2     2       TRUE
3     3       TRUE
4     4       TRUE
5     5       TRUE
6     6       TRUE
7     7       TRUE
8     8       TRUE
9     9       TRUE
10   10       TRUE
11   11       TRUE
12   12       TRUE
13   13       TRUE
14   14       TRUE
15   15       TRUE
16   16       TRUE
17   17      FALSE
18   18      FALSE
19   19      FALSE
20   20      FALSE
21   21      FALSE
22   22      FALSE
23   23      FALSE
24   24      FALSE
25   25      FALSE

As other empirical test found no clear limits in the number of species (i.e. rows) it seems there is a clear limit between 16 traits and 17 traits.

from fundiversity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.