# class_from_class

0th

Percentile

##### Parse embedded classifications

Parse embedded classifications, optionally checking the results via a database.

Keywords
internal
##### Usage
class_from_class(class, class_key, class_regex, class_sep, class_rev, database, ...)
##### Arguments
class
(character) The unparsed class information.
class_key
(character of length 1) The identity of the capturing groups defined using class_iregex. The length of class_key must be equal to the number of capturing groups specified in class_regex. Any names added to the terms will be used as column names in the output. At least "taxon_id" or "name" must be specified. Only "taxon_info" can be used multiple times. Each term must be one of those decribed below:
class_regex
(character of length 1) A regular expression with capturing groups indicating the locations of data for each taxon in the class term in the key argument. The identity of the information must be specified using the class_key argument.
class_sep
(character of length 1) Used with the class term in the key argument. The character(s) used to separate individual taxa within a classification.
class_rev
(logical of length 1) Used with the class term in the key argument. If TRUE, the order of taxon data in a classfication is reversed to be specific to broad.
database
(character of length 1) The name of the database that patterns given in parser will apply to. Valid databases include "ncbi", "itis", "eol", "col", "tropicos", "nbn", and "none". "none" will cause no database to be quired; use this if you want to not use the internet. NOTE: Only "ncbi" has been tested so far.
...
Not used
##### Value

list of data.frame

##### Aliases
• class_from_class
Documentation reproduced from package metacoder, version 0.1.2, License: GPL-2 | GPL-3

### Community examples

Looks like there are no examples yet.