parts | R Documentation |
This suite of functions act on taxon or taxonref objects, and pick out object elements by the name of the function.
name(x, unname = TRUE) ## S3 method for class 'taxon' name(x, unname = TRUE) ## S3 method for class 'taxonref' name(x, unname = TRUE) uri(x, unname = TRUE) ## S3 method for class 'taxon' uri(x, unname = TRUE) ## S3 method for class 'taxonref' uri(x, unname = TRUE) rank(x, unname = TRUE) ## S3 method for class 'taxon' rank(x, unname = TRUE) ## S3 method for class 'taxonref' rank(x, unname = TRUE) taxonid(x, unname = TRUE) ## S3 method for class 'taxon' taxonid(x, unname = TRUE) ## S3 method for class 'taxonref' taxonid(x, unname = TRUE)
x |
Input, object of class taxon or taxonref |
unname |
(logical) Unname output elements? Ignored when input is of class
|
For taxon
inputs, gives back a taxonref
object. For taxondf
inputs, gives back taxondf
.
# operating on `taxon` objects out <- make_taxon(genus="Poa", epithet="annua", authority="L.", family='Poaceae', clazz='Poales', kingdom='Plantae', variety='annua') out %>% name() out %>% uri() out %>% rank() out %>% taxonid() ## or don't unname the output out %>% name(unname = FALSE) # operating on `taxonref` objects res <- taxonref("genus", "Poa", 56, "http://scottchamberlain.info/") res %>% name() res %>% uri() res %>% rank() res %>% taxonid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.