Learn R Programming

medExtractR (version 0.4.1)

frequency_vals: Keywords Specifying Frequency

Description

A dictionary mapping frequency expressions to numeric values representing the corresponding number of doses per day. Example expressions include "q12 hours", "bid", "daily", and "three times a day". The form of each frequency is given as a regular expression.

Usage

frequency_vals

Arguments

Format

A data frame with frequency expressions (exact and/or regular expressions).

expr

A character vector, expressions to consider as frequency.

value

A numeric vector, numeric value of frequency represented as number of doses taken per day. For example, “bid” and “twice a day” would both have a numeric value of 2.

Examples

Run this code
# NOT RUN {
data(frequency_vals)
# }

Run the code above in your browser using DataLab