Skip to content

community_stability is missing the species.var argument #128

@I-Hickman

Description

@I-Hickman

Hello,

I am trying to use the community_stability function, however, it requires species.var argument (as per Hallett et al. 2016) for the desired output. It is missing this info both in the description of the function and in the function itself, i.e. won't allow me to run the code with the species.var argument.

Here is the what happens when I run the code:

Community.stability <- community_stability(

  • df = sp_abundnace_site,
  • time.var = "Year",
  • species.var = "Species",
  • abundance.var = "avg",
  • replicate.var = "Site"
  • )
    Error in community_stability(df = sp_abundnace_site, time.var = "Year", :
    unused argument (species.var = "Species")

Here is what is says in the help section - in the Details section it mentions species.var, but it is not in the code

Usage
community_stability(df, time.var, abundance.var, replicate.var = NA)

Details
The input data frame needs to contain columns for time, species and abundance; time.var, species.var and abundance.var are used to indicate which columns contain those variables. If multiple replicates are included in the data frame, that column should be specified with replicate.var. Each replicate should reflect a single experimental unit - there should be a single community represented within each time point and replicate.

Here is the code from Hallett et al. 2016:

community_stability(df = knz_001d,
time.var = "year",
species.var = "species",
abundance.var = "abundance",
replicate.var = "subplot" )

Please correct me if I am wrong!
Thank you in advance,
Iris

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions