Description Usage Arguments Value See Also Examples
View source: R/icd10cm_injury.R
Add Selected Intents
1 | icd_select_intent(data, inj_col, ...)
|
data |
input data |
inj_col |
ecode and diagnosis column indices |
... |
keyword list |
return the input with additional intent variables
icd_matched_intent
for a more efficient approach
1 2 3 4 5 6 7 8 | library(dplyr)
library(purrr)
dat <- data.frame(
d1 = c("T63023", "X92821", "X99100", "T360x"),
d2 = c("T65823", "Y030x0", "T17200", "V0100x")
)
dat %>% icd_select_intent(inj_col = c(1, 2), "untintentional", "assault")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.