read_synonymes: Read Synonyme Table

Description Usage Arguments Details Value Author(s) References Examples

View source: R/read_synonymes.R

Description

Read synonyme table.

Usage

1
2
3
4
read_synonymes(file, mode = "table", sep = ";", self.match = FALSE,
  include.lowercase = FALSE, ignore.empty = FALSE, sort = FALSE,
  verbose = FALSE, remove.ambiguous = TRUE, lowercase = FALSE,
  from = "synonyme", to = "name")

Arguments

file

Input file

mode

The input file type: "list" or "table"; see details.

sep

Separator mark.

self.match

Include self matches

include.lowercase

Include lowercase

ignore.empty

Ignore the empty cases

sort

Sort synonymes

verbose

verbose

remove.ambiguous

Remove ambiguous terms.

lowercase

All synonymes considered in lowercase only

from

field that will be replaced

to

field that contains the final names

Details

If mode = "list", each row of the input file corresponds to a unique entry with potentially multiple name variants, separated by semicolon. The first element gives the selected version of the name, the subsequent elements list synonymes that will be mapped to the selected version. If mode = "table", the file has two columns where each row corresponds to a unique entry and has the selected name and a single alternative name.

Value

Synonyme data frame with the fields 'name' (the selected term) and 'synonyme' (the alternative terms).

Author(s)

Leo Lahti [email protected]

References

See citation("bibliographica")

Examples

1
## Not run: syn <- read_synonymes(file)

rOpenGov/bibliographica documentation built on Nov. 13, 2018, 5:59 a.m.