View source: R/utlede_variabler.R
utlede_kardiomyopati | R Documentation |
Add variable kategori_vt_kardiomyopati
for VT-procedures,
based on variables kardiomyopati
and type_kardiomyopati
.
utlede_kardiomyopati(df)
df |
data.frame with AblaNor data. Must contain |
Returns df
with 1 new column.
df <- data.frame(
forlopstype = c(NA, 1, rep(2,8)),
kardiomyopati = c(NA, NA, 9, 0, rep(1, 6)),
type_kardiomyopati = c(NA, NA, NA, NA, 1, 2, 3, 4, 5, 99))
ablanor::utlede_kardiomyopati(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.