cleanSpeciesDf: cleanSpeciesDf is a prototype function to parse a species...

Description Usage Arguments Author(s) References Examples

Description

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;...
. . .

Usage

1
cleanSpeciesDf(inputFile)

Arguments

inputTXT

a Text of the specified format

Author(s)

Jonas Hagge

References

Löbl, I. & A. Smetana (eds): Catalogue of Palaearctic Coleoptera: http://www.apollobooks.com/palaearcticcoleoptera.htm

Examples

1
2
3
 ### first the basic parsing
 inputFile <- system.file("extdata", "species.chunk",   package="parseSpeciesList")
 df <- cleanSpeciesDf(inputFile)

gisma/parseSpeciesList documentation built on May 17, 2019, 5:27 a.m.