cleantext: Function to remove spaces, punctuation from phenome terms

Description Usage Arguments Examples

View source: R/cleantext.R

Description

Given a character vector, remove comments, superfluous characters, extra spaces and non-anatomical terms

Usage

1
2
cleantext(x, fast = TRUE, latin = TRUE, cuts = TRUE,
  comments = TRUE)

Arguments

x

a character vector

fast

whether to use fast version (for duplicated analysis) or slow version (for printing characters)

latin

whether to use Latin token algorithm (see Schinke 1996)

cuts

whether to cut terms from a list

comments

logical whether to remove test in square brackets

Examples

1
2
3
4
## Not run: 
cleantext("dorsalmost part of the processus ligamentus cranii", fast=FALSE, cuts=FALSE)

## End(Not run)

celiason/phenotools documentation built on Sept. 12, 2019, 6:49 p.m.