View source: R/utlede_variabler.R
utlede_OppholdsID | R Documentation |
Procedures that belongs to the same hospital-stay are given the same ID.
utlede_OppholdsID(df)
df |
data.frame med Angio PCI data |
returns df
with a new column OppholdsID
. For
primaerforlop OppholdsID
are copied from ForlopsID
, whereas
for sekundaerforlop OppholdsID
are copied from
PrimaerForlopsID
aka KobletForlopsID
.
PrimaerForlopsID
.
x <- data.frame(
Regtype = c(rep("Primær", 4), "Sekundær", "Sekundær"),
ForlopsID = c(1, 2, 3, 4, 5, 6),
PrimaerForlopsID = c(rep(NA, 4), 1, 3))
utlede_OppholdsID(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.