data(plants_distance)
# Compute MEMs for multiple distance thresholds
mems <- mem_multithreshold(
distance.matrix = plants_distance,
distance.thresholds = c(0, 1000, 5000)
)
# View structure
head(mems)
dim(mems)
# Check column names showing threshold and predictor number
colnames(mems)[1:6]
# Limit number of spatial predictors
mems_limited <- mem_multithreshold(
distance.matrix = plants_distance,
distance.thresholds = c(0, 1000, 5000),
max.spatial.predictors = 20
)
dim(mems_limited)
Run the code above in your browser using DataLab