
abbreviate
).
The returned names are made unique with function
make.unique
which adds numbers to the end of CEP names if needed.make.cepnames(names, seconditem = FALSE)
make.names
,
and then splits these into elements. The CEP name is made by taking
the four first letters of the first element, and four first letters
of the last (default) or the second element (with
seconditem = TRUE
). If there was only one name element, it is
abbreviate
d to eight letters. Finally, the names are
made unique which may add numbers to duplicated names.
The CEP names were originally used, because old FORTRAN IV
did not have CHARACTER
data type, but text had to be stored
in numerical variables, which in popular computers could hold four
characters. In modern times, there is no reason for this limitation,
but ecologists are used to these names, and they may be practical to
avoid congestion in ordination plots.make.names
, strsplit
,
substring
, paste
, abbreviate
.make.cepnames(c("Aa maderoi", "Poa sp.", "Cladina rangiferina",
"Cladonia cornuta", "Cladonia cornuta var. groenlandica",
"Cladonia rangiformis", "Bryoerythrophyllum"))
data(BCI)
colnames(BCI) <- make.cepnames(colnames(BCI))
Run the code above in your browser using DataLab