utlede_kateg_afli_aryt_i48: Kategori AFLI arytmi i48

View source: R/utlede_variabler.R

utlede_kateg_afli_aryt_i48R Documentation

Kategori AFLI arytmi i48

Description

Add variable kategori_afli_aryt_i48 for AFLI-procedures, based on ICD codes.

Usage

utlede_kateg_afli_aryt_i48(df)

Arguments

df

data.frame with Ablanor-data. Must contain variables forlopstype, aryt_i48_0, aryt_i48_1 and aryt_i48_1_underkat.

Value

returns df with one new column.

Examples

df <- data.frame(
   forlopstype = rep(1, 4),
   aryt_i48_0 = c(0, 1, 0, 0),
   aryt_i48_1 =  c(0, 0, 1, 2),
   aryt_i48_1_underkat = c(NA, NA, 1, 2))
ablanor::utlede_kateg_afli_aryt_i48(df)

Rapporteket/ablanor documentation built on Feb. 27, 2025, 8:26 p.m.