Skip to contents

Calculate the total number of presence/absence states for a given number of sites and features.

Usage

n_states(n_sites, n_features)

Arguments

n_sites

numeric number of sites.

n_features

numeric number of features.

Value

A numeric value.

Examples

# calculate number of states for 3 sites and 2 features
n_states(n_sites = 2, n_features = 3)
#> [1] 64