taxonref: A class to represent a taxonomic reference

Description Usage Arguments Examples

View source: R/s3methods.R

Description

A class to represent a taxonomic reference

Usage

1
taxonref(rank = "none", name = "none", id = "none", uri = "none")

Arguments

rank

(character) Taxonomic rank

name

(character) A name

id

(character,numeric) Identifier

uri

(character) Source of name

Examples

1
2
3
4
5
6
7
8
taxonref("genus", "Poa", 56, "http://scottchamberlain.info/")

# many names input
splist <- c('Litsea bindoniana', 'Rubus ghanakantae', 'Desmanthus palmeri',
 'Leptinella longipes', 'Asarum sakawanum', 'Cistanche compacta',
 'Ormosia nanningensis', 'Claoxylon physocarpum', 'Hedycarya arborea',
 'Hypnum gracile')
lapply(splist, function(x) taxonref("species", name = x))

Example output

Attaching package: 'binomen'

The following object is masked from 'package:stats':

    binomial

The following objects are masked from 'package:base':

    grouping, rank

<taxonref>
  rank: genus
  name: Poa
  id: 56
  uri: http://scottchamberlain.info/
[[1]]
<taxonref>
  rank: species
  name: Litsea bindoniana
  id: none
  uri: none

[[2]]
<taxonref>
  rank: species
  name: Rubus ghanakantae
  id: none
  uri: none

[[3]]
<taxonref>
  rank: species
  name: Desmanthus palmeri
  id: none
  uri: none

[[4]]
<taxonref>
  rank: species
  name: Leptinella longipes
  id: none
  uri: none

[[5]]
<taxonref>
  rank: species
  name: Asarum sakawanum
  id: none
  uri: none

[[6]]
<taxonref>
  rank: species
  name: Cistanche compacta
  id: none
  uri: none

[[7]]
<taxonref>
  rank: species
  name: Ormosia nanningensis
  id: none
  uri: none

[[8]]
<taxonref>
  rank: species
  name: Claoxylon physocarpum
  id: none
  uri: none

[[9]]
<taxonref>
  rank: species
  name: Hedycarya arborea
  id: none
  uri: none

[[10]]
<taxonref>
  rank: species
  name: Hypnum gracile
  id: none
  uri: none

binomen documentation built on May 30, 2017, 7:38 a.m.