I am using the rEHR package available on GitHub for elecronic healthcare records with this code:
first_MU <-first_events(all_case_data,tab="Observation",
columns=c("patid","obsdate","medcode"),
where="medcode %in% .(mu_codes$medcode)")
I think the 'where' argument is equivalent to the WHERE clause in SQL, in that it is used to select subsets of the data table.
However when running the above code, I get this error message:
Error in translate_sql_(expand_string(where)) : is.list(dots) is not TRUE
Could anyone explain to me what this means?