freq_comb | R Documentation |
The 'freq_comb()' function extracts the combinational frequency of species. 'freq_comb()' is minor and features in the vignette to assist users visualize their data.
freq_comb(data, type, dim_max)
data |
data.frame with the frequency of species combinations. |
type |
Character. Supply either '"Grid"' or '"Transect"'. |
dim_max |
Numeric. Number of sampling units in one row of a '"Grid"' or '"Transect"'. |
The function returns an object of class data.frame.
James L. Tsakalos
['comspat()']
# Training data (see package vignette S.9)
s9 <- data.frame(
Species = c("A", "D", "B", "B", "E", "C", "B", "A"),
Y = c(1, 1, 2, 2, 2, 3, 3, 3),
X = c(2, 3, 1, 2, 2, 1, 1, 3)
)
# create data.frame counting the species combinations
freq_comb(
data = s9,
type = "Grid",
dim_max = 3
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.