Hello,
I have a data frame and I want to transform it into an occurrence table. If you have tips , let me know pls
Here is the table
Placette Espèce Fleur Tige Feuille Racine
EP01 especeA 1 1 0 0
ED02 especeA 1 0 0 0
ED03 especeA 0 1 1 1
ED05 especeA 0 0 0 1
EP01 especeB 0 1 1 0
EI03 especeB 0 0 0 1
And I want to transform the table like this :
Placette Espece Substrat
EP01 especeA Fleur
EP01 especeA Tige
ED02 especeA Fleur
ED03 especeA Tige
ED03 especeA Feuille
ED03 especeA Racine
...
When the species is present in 3 differents substrates , then there are 3 lines of the species with the substrate each line.
Have you any advices ?
Thank you !