Hello Houjan,
There are two issues here. The first is a technical question, the
second is more conceptual. I'll respond to the technical question
first.
For tabular data, if your input data have a field with abundances
then you can specify it as a sample_count column. Otherwise the
abundances are estimated from the input rows. The total abundance
of a label across all groups is the number of rows in which that
label occurs. The abundance for a label in a group is the number of
times that label and group combination are calculated. This matters
most when aggregating point observations to coarser cells. For your
data I am guessing it will be one row per population, so the
abundances for each label in each group will be 1.
For example, you might have a table of two populations (plots) with
two taxa that looks like this:
plot,taxon,abundance
p1a,spp1,5
p1a,spp2,3
p2b,spp1,5
p2b,spp1,3
p2b,spp2,5
If you import them using text groups based on the "plot" field, but
do not specify a sample_count column, then taxon "spp1" will have an
abundance of 1 in group "p1a" and 2 in group "p2b", as it occurs in
one and two rows respectively. Total abundance across groups will
be 3 as it is found in three rows.
If you do specify a sample_count column, then taxon "spp1" will have
an abundance of 5 in group "p1a" and 8 in group "p2b" (sum of 3 and
5). Its total abundance will be 13.
On the more conceptual side:
Endemism does not use abundances. It uses the range of each label
(taxon), calculated as the number of groups the taxon occurs in. It
is useful to think of the range as a 2D footprint, where you have
extent but no depth or height. Some refer to endemism as geographic
rarity, though.
Endemism can be absolute, where a taxon is found in one place and
nowhere else. However, this is very dependent on the definition of
the "place". The alternative is relative endemism, in that a
taxon's range is relatively small but might span several places. An
example is where a taxon with a small range is found in both Cape
York Peninsula and New Guinea. It is not absolutely endemic to
either place, but is still range restricted.
It is also useful to note that a taxon might be found in very few
places (is range restricted), but is abundant in those locations
where it is found.
See Crisp et al (2001) for some discussion of the above points.
https://doi.org/10.1046/j.1365-2699.2001.00524.x
Rarity itself is a function of abundances. A rare taxon is usually
found in few places (is range restricted, and at its most extreme it
is found in only one place), but there are relatively few
individuals across its range.
The ENDW_WE and RAREW_WE indices are calculated in the same way,
with the difference being that the endemism calculations work with
fractions of ranges in the sample, while the rarity calculations use
the fractions of abundances.
https://github.com/shawnlaffan/biodiverse/wiki/Indices#rarity-whole
https://github.com/shawnlaffan/biodiverse/wiki/Indices#endemism-whole
Hopefully the above helps, but please let me know what else needs to
be clarified.
The above might also be more detailed than you were needing, but
will likely be useful for others who come later.
Regards,
Shawn.