validate_prescriptions(rxval)
Error in `[.data.table`(data, , var) :
j (the 2nd argument inside [...]) is a single symbol but column name 'var' is not found. Perhaps you intended DT[, ..var]. This difference to data.frame is deliberate and explained in FAQ 1.1.
7.
stop("j (the 2nd argument inside [...]) is a single symbol but column name '",
jsubChar, "' is not found. Perhaps you intended DT[, ..",
jsubChar, "]. This difference to data.frame is deliberate and explained in FAQ 1.1.")
6.
`[.data.table`(data, , var) at validate_data.R#143
5.
data[, var] at validate_data.R#143
4.
FUN(X[[i]], ...)
3.
vapply(vectorname, function(var, data) {
any(is.na(data[, var]))
}, data = data, FUN.VALUE = logical(1)) at validate_data.R#140
2.
.validate_variable_no_missing(data = data, vectorname = variable_exists_non_missing,
action = "error") at validate_data.R#765
1.
validate_prescriptions(rxval)