get_substances: Extract substance information from free-text information

Description Usage Arguments Examples

View source: R/get_substances.R

Description

This function creates indicator variables for substances that are listed in free-text. Indicator variables for a list of drugs and other terms are created in the dataframe supplied to the function.

Usage

1

Arguments

data

The dataframe containing the free text information.

...

The free text fields you wish to scan for substances.

Examples

1
get_substances(data=death_certs, lina, lineb, linec, lined, injurydescription, contributingcauses)

pjward5656/kipRc documentation built on April 27, 2020, 10:34 p.m.