as_niche_factor: Converts a vector or matrix of quantitative environmental...

View source: R/as_niche_factor.R

as_niche_factorR Documentation

Converts a vector or matrix of quantitative environmental data into a factorized version with a desired numbers of partitions.

Description

Converts a vector or matrix of quantitative environmental data into a factorized version with a desired numbers of partitions.

Usage

as_niche_factor(env, partitions = 3)

Arguments

env

A matrix or data.frame of quantitative environmental data.

partitions

Number of intervals in which to divide the range of each variable.

Value

A data.frame of numeric variables converted to factor

Examples


data(soilandfauna)

# Select environmental data

env <- soilandfauna[,c("Bd","P","EC")]

as_niche_factor(env)


lsaravia/EcoIndicators documentation built on Sept. 19, 2024, 11:07 p.m.