-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsynonyms.match_names.Rd
54 lines (50 loc) · 1.8 KB
/
synonyms.match_names.Rd
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_names.R
\name{synonyms.match_names}
\alias{synonyms.match_names}
\title{List the synonyms for a given name}
\usage{
\method{synonyms}{match_names}(tax, row_number, taxon_name, ott_id, ...)
}
\arguments{
\item{tax}{a data frame generated by the
\code{\link{tnrs_match_names}} function}
\item{row_number}{the row number corresponding to the name for
which to list the synonyms}
\item{taxon_name}{the taxon name corresponding to the name for
which to list the synonyms}
\item{ott_id}{the ott id corresponding to the name for which to
list the synonyms}
\item{...}{currently ignored}
}
\value{
a list whose elements are all synonym names (as vectors of
character) for the taxonomic names that match the query (the
names of the elements of the list).
}
\description{
When querying the Taxonomic Name Resolution Services for a
particular taxonomic name, the API returns as possible matches all
names that include the queried name as a possible synonym. This
function allows you to explore other synonyms for an accepted
name, and allows you to determine why the name you queried is
returning an accepted synonym.
}
\details{
To list synonyms for a given taxonomic name, you need to provide
the object resulting from a call to the
\code{\link{tnrs_match_names}} function, as well as one of either
the row number corresponding to the name in this object, the name
itself (as used in the original query), or the ott_id listed for
this name. Otherwise, the synonyms for all the currently matched
names are returned.
}
\examples{
\dontrun{
echino <- tnrs_match_names(c("Diadema", "Acanthaster", "Fromia"))
## These 3 calls are identical
synonyms(echino, taxon_name="Acanthaster")
synonyms(echino, row_number=2)
synonyms(echino, ott_id=337928)
}
}