File: checkLabel.Rd

package info (click to toggle)
r-cran-ape 5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,932 kB
  • sloc: ansic: 7,626; cpp: 116; sh: 17; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\name{checkLabel}
\alias{checkLabel}
\title{Checking Labels}
\description{
  Checking and correcting character strings, particularly before writing
  a Newick tree.
}
\usage{checkLabel(x)}
\arguments{\item{x}{a vector of mode character.}}
\details{
  This function deletes the leading and trailing spaces (including
  tabulations, new lines, and left or right parentheses at the beginning
  or end of the strings), substitutes the spaces inside the strings by
  underscores, and substitutes commas, colons, semicolons, and
  parentheses inside the strings by dashes.
}
\value{a vector of mode character.}
\author{Emmanuel Paradis}
\seealso{
  \code{\link{makeLabel}}, \code{\link{makeNodeLabel}},
  \code{\link{mixedFontLabel}}, \code{\link{stripLabel}},
  \code{\link{updateLabel}}
}
\examples{
checkLabel(" Homo sapiens\t(Primates; World)   ")
}
\keyword{manip}