Comments (2)
Good catch!
Just a note that we should convert sp_com
to a matrix once and save the result to re-use it in the rest of the function instead of just having as.matrix()
in the %*%
call because having a matrix also leads to slightly better performance in t()
:
t.data.frame
#> function (x)
#> {
#> x <- as.matrix(x)
#> NextMethod("t")
#> }
#> <bytecode: 0x55f3e6bd44f8>
#> <environment: namespace:base>
Created on 2023-01-31 with reprex v2.0.2.9000
from fundiversity.
Actually this bug also affects fd_raoq()
:
library("fundiversity")
fd_raoq(traits_birds, as.data.frame(site_sp_birds))
#> Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'diag' : nécessite des arguments numériques/complexes matrice/vecteur
Created on 2023-01-31 with reprex v2.0.2
Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.2.0 (2022-04-22 ucrt)
#> os Windows 10 x64 (build 19045)
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate fr_FR.UTF-8
#> ctype fr_FR.UTF-8
#> tz Europe/Berlin
#> date 2023-01-31
#> pandoc 2.19.2 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> abind 1.4-5 2016-07-21 [1] CRAN (R 4.2.0)
#> cachem 1.0.6 2021-08-19 [1] CRAN (R 4.2.0)
#> cli 3.6.0 2023-01-09 [1] CRAN (R 4.2.0)
#> codetools 0.2-18 2020-11-04 [1] CRAN (R 4.2.0)
#> digest 0.6.31 2022-12-11 [1] CRAN (R 4.2.2)
#> evaluate 0.20 2023-01-17 [1] CRAN (R 4.2.2)
#> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.2.0)
#> fs 1.6.0 2023-01-23 [1] CRAN (R 4.2.2)
#> fundiversity * 1.1.1 2022-11-21 [1] CRAN (R 4.2.0)
#> future 1.30.0 2022-12-16 [1] CRAN (R 4.2.2)
#> future.apply 1.10.0 2022-11-05 [1] CRAN (R 4.2.2)
#> geometry 0.4.6.1 2022-07-04 [1] CRAN (R 4.2.0)
#> globals 0.16.2 2022-11-21 [1] CRAN (R 4.2.0)
#> glue 1.6.2 2022-02-24 [1] CRAN (R 4.2.0)
#> htmltools 0.5.4 2022-12-07 [1] CRAN (R 4.2.2)
#> knitr 1.42 2023-01-25 [1] CRAN (R 4.2.2)
#> lattice 0.20-45 2021-09-22 [1] CRAN (R 4.2.0)
#> lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.2.1)
#> listenv 0.9.0 2022-12-16 [1] CRAN (R 4.2.2)
#> magic 1.6-1 2022-11-16 [1] CRAN (R 4.2.0)
#> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.2.0)
#> Matrix 1.5-3 2022-11-11 [1] CRAN (R 4.2.2)
#> memoise 2.0.1 2021-11-26 [1] CRAN (R 4.2.0)
#> parallelly 1.34.0 2023-01-13 [1] CRAN (R 4.2.2)
#> purrr 1.0.1 2023-01-10 [1] CRAN (R 4.2.2)
#> R.cache 0.16.0 2022-07-21 [1] CRAN (R 4.2.1)
#> R.methodsS3 1.8.2 2022-06-13 [1] CRAN (R 4.2.0)
#> R.oo 1.25.0 2022-06-12 [1] CRAN (R 4.2.0)
#> R.utils 2.12.2 2022-11-11 [1] CRAN (R 4.2.0)
#> Rcpp 1.0.10 2023-01-22 [1] CRAN (R 4.2.0)
#> reprex 2.0.2 2022-08-17 [1] CRAN (R 4.2.1)
#> rlang 1.0.6.9000 2022-10-11 [1] Github (r-lib/rlang@28a40b5)
#> rmarkdown 2.20 2023-01-19 [1] CRAN (R 4.2.2)
#> rstudioapi 0.14 2022-08-22 [1] CRAN (R 4.2.1)
#> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.0)
#> styler 1.9.0 2023-01-15 [1] CRAN (R 4.2.2)
#> vctrs 0.5.1 2022-11-16 [1] CRAN (R 4.2.0)
#> withr 2.5.0 2022-03-03 [1] CRAN (R 4.2.0)
#> xfun 0.36 2022-12-21 [1] CRAN (R 4.2.2)
#> yaml 2.3.7 2023-01-23 [1] CRAN (R 4.2.2)
#>
#> [1] C:/Users/ke76dimu/Documents/R/R-4.2.0/library
#>
#> ──────────────────────────────────────────────────────────────────────────────
from fundiversity.
Related Issues (20)
- Hex logo
- Managing error from qhull transferred to geometry::convhulln() in fd_chull()
- Error when site contains no species in fd_fdiv() and fd_feve() HOT 2
- Errors when using non-quantitative traits in fd_fric()
- Release fundiversity 0.2.1
- Specific error obtained with Qhull HOT 3
- Investigate RCGAL as a replacement of geometry HOT 4
- Simplify CI matrix by using `_R_CHECK_DEPENDS_ONLY_TESTS_` HOT 2
- fd_fdiv() returns `NaN` on datasets without rownames
- FRic returns NA without warnings nor messages HOT 1
- Add tip in error message because of non-continuous traits HOT 1
- Renaming the vignettes to order them logically? HOT 2
- Change title of package in DESCRIPTION as it doesn't only computes "Alpha functional diversity indices"
- Using future and memoise together HOT 2
- Add link to published paper
- Should we write a vignette for non-continuous trait data? HOT 1
- fd_dis gives error if site x species matrix does not have row names HOT 4
- Be more specific in the help with memoization HOT 2
- Have a worked through example with individual level dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fundiversity.