BEplotZeros: Change Exploratories plot names without zeros to plot names...

BEplotZerosR Documentation

Change Exploratories plot names without zeros to plot names with zeros This function adds the sortable plot names to an existing dataset. Based on a column with Bexis plot names (e.g. AEG1), the function creates a column with sortable plot names (e.g. AEG01). Note: This function does the opposite of the "BEplotNonZeros.R" function

Description

Change Exploratories plot names without zeros to plot names with zeros This function adds the sortable plot names to an existing dataset. Based on a column with Bexis plot names (e.g. AEG1), the function creates a column with sortable plot names (e.g. AEG01). Note: This function does the opposite of the "BEplotNonZeros.R" function

Usage

BEplotZeros(dat, column, plotnam = "PlotSTD")

Arguments

dat

a dataset (data.frame) with at least one column with Bexis plot names (e.g. "AEG1)

column

the column name of the column containing the Bexis plot names

plotnam

the desired name of the new column with sortable plot names. Default is "PlotSTD"

Value

the same dataset with an extra column containing the sortable plot names (e.g. "AEG01)

Author(s)

Caterina Penone

Examples

#create a dataset with a plot name column
dat <- data.frame(Plot_name = c("AEG1", "AEG2", "HEW4", "SEG8", "SEW10"), Values=1:5)
dat <- BEplotZeros(dat, "Plot_name", plotnam = "Sorted_plot_name")


allanecology/BetaDivMultifun documentation built on Nov. 9, 2023, 8:47 p.m.