This function will select all the columns from a MOAS-like data.frame that are known to include possible sensitive information.
select_sensitive(data)
data | The MOAS or a MOAS generated file. |
---|
tibble
dt <- data.frame(ID = 1:3, Birth_Date = c("1997-01-12", "1984-01-01", "1953-09-16"), Comment = c("", "Has leukemia", "is on diazepam"), CVLT_A = c(19, 25, 29), stringsAsFactors = FALSE) select_sensitive(dt)#> Comment Birth_Date #> 1 1997-01-12 #> 2 Has leukemia 1984-01-01 #> 3 is on diazepam 1953-09-16