JohnsonHsieh / iNEXT

R package for interpolation and extrapolation
https://JohnsonHsieh.github.com/iNEXT
57 stars 26 forks source link

Table modification for incidence data #60

Closed aberaslop closed 3 years ago

aberaslop commented 3 years ago

Dear iNEXT team, Thank you so much for this package! I am struggling to input my data, and I'd be very thankful if you could give me some hints on how to format the input table. I have microbiome data with presence/absence of certain bacteria in a number of different samples belonging to four different treatments. Right now my table looks like this:

Sample Treatment Bact1 Bact2 Bact3
1 1 1 0 1
2 2 0 0 1
3 3 1 1 1

I was wondering how to transform this data into an input for iNEXT. Specially, I am interested in the "incidence data". I have looked for the original ant dataset Longino & Colwell (2011), but I have not been able to download a table to figure out what the input data actually looks like. I know that after loading it into the program it should look like this:

List of 5 $ h50m : num [1:228] 599 330 263 236 222 195 186 183 182 129 ... $ h500m : num [1:242] 230 133 131 123 78 73 65 60 60 56 ... $ h1070m: num [1:123] 150 99 96 80 74 68 60 54 46 45 ... $ h1500m: num [1:57] 200 144 113 79 76 74 73 53 50 43 ... $ h2000m: num [1:15] 200 80 59 34 23 19 15 13 8 8 ...

Any hint is greatly appreciated! All the best!

aberaslop commented 3 years ago

Hi,

I have found the answer in the web-based version of the package. I am leaving the link here for future reference if anyone is also struggling to make it work.

https://chao.shinyapps.io/iNEXTOnline/

Thank you again for this great package!