Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vignette for non-continuous trait data #83

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions vignettes/fundiversity-5-non-continuous.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "fundiversity-5-non-continuous"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{fundiversity-5-non-continuous}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(fundiversity)
```

fundiversity can only work with trait that are continuous. So what is needed is to transform back the non-continuous traits into continuous measures. There are several ways to do that and it has implications on how the traits influence the functional diversity indices.
fundiversity explicitly excludes functions dealing with transforming non-continuous traits into continuous traits from its features as several other packages exist to work on them. (mFD, ade4, ?)
Here we mention the different questions that have to be answered when doing so by showing one example and one possible workflow to transform non-continuous trait data into continuous data.

How to deal with non-continuous traits?

Different kinds of dissimilarity
Gower's, adapted Gower, dist.ktab()

the nature of distinct type of traits: binary traits by default have greater importance

Cited references
Gower
Pavoine
Maire et al.
De Bello handbook
Loading