View source: R/as_niche_factor.R
as_niche_factor | R Documentation |
Converts a vector or matrix of quantitative environmental data into a factorized version with a desired numbers of partitions.
as_niche_factor(env, partitions = 3)
env |
A matrix or data.frame of quantitative environmental data. |
partitions |
Number of intervals in which to divide the range of each variable. |
A data.frame of numeric variables converted to factor
data(soilandfauna)
# Select environmental data
env <- soilandfauna[,c("Bd","P","EC")]
as_niche_factor(env)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.