identify_atc_multiple: Find multiple dispensations using ATC-codes

Description Usage Arguments Examples

View source: R/identify_atc.R

Description

This function allows you to find mutiple dispensations based on ATC-codes. Creates a new columns based on the ATC-codes.

Usage

1
identify_atc_multiple(.data, atc_list, names)

Arguments

.data

A tibble with data in QTF-format.

atc_list

A character vector (or scalar) with ATC-codes that should be identified in the data.

var_name_list

A character string with the column name for the new variable.

Examples

1
2
3
4
data(data_atc)
atc_list <- list("L04AA11", "J05AR02")
names <- list("etanercept", "other")
identify_atc(atc_list, names)

liljamathias/QRfunctions documentation built on Jan. 20, 2021, 1:32 a.m.