Description Usage Arguments Author(s) References Examples
cleanSpeciesDf is a function to clean a dataframe as provided by the enthusiasts (coleopterists) of the beetle community.
It uses the full power of df manipulation in R and is way (about 35 times ;) faster than the parseSpeciesList approach
The resulting dataframe is a not normalized relation ( so it means a huge table with mostly redundant informations).
It looks like:
familiy; genus; subgenus; country[1];country[2];country[n];...
alpestris; STAPHYLINIDAE; Quedius; Raphirus;0;1;1;...
aereipennis; STAPHYLINIDAE; Quedius; Raphirus;1;0;1;...
.
.
.
1 | cleanSpeciesDf(inputFile)
|
inputTXT |
a Text of the specified format |
Jonas Hagge
Löbl, I. & A. Smetana (eds): Catalogue of Palaearctic Coleoptera: http://www.apollobooks.com/palaearcticcoleoptera.htm
1 2 3 | ### first the basic parsing
inputFile <- system.file("extdata", "species.chunk", package="parseSpeciesList")
df <- cleanSpeciesDf(inputFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.