Learn R Programming

medExtractR (version 0.4.1)

replace_tab: String Replace Tablet With Tabs

Description

This function standardizes various forms of “tablet” or “capsule” with the string “tabs”.

Usage

replace_tab(phrase)

Arguments

phrase

Text to search.

Value

Updated phrase.

Details

Some entities use a keyword such as tablet, capsule, or pill to identify the entities, e.g. dose amount. This standardizes possible expressions of similar keywords.