Closed eribul closed 5 years ago
Possible solution to use when using the package:
cases %>%
group_by(P_Side) %>%
do(
categorize(
.,
par_icd_utdatum,
"elix_icd10",
id = "LopNr",
date = "P_SurgDate",
days = c(-365, -1),
tech_names = TRUE
)
)
Have updated but not tested the package. Test before closeing the issue.
If categorize/classify is called and if specified id column is not a unique id, stop! id column must give unique ids. If not, the operation must be split! Use data.tableuniqueN to determine if id unique or not.