ropensci-archive / cleanEHR

:warning: ARCHIVED :warning: Essential tools and utility functions to facilitate the data processing pipeline, data cleaning and data analysing of clinical data from CC-HIC
GNU General Public License v3.0
54 stars 23 forks source link

Error in episode.graph on cleanEHR #146

Closed DocEd closed 6 years ago

DocEd commented 6 years ago

Picked up a bug trying to use episode.graph() on the exemplar dataset. Here's the error is throws:

Error in ep@data[[items[i]$code]]: attempt to select less than one element in get1index
Traceback:

1. episode.graph(anon_ccd, 7)
2. create.long.table(ep, used.drugs)

Any thoughts?

DocEd commented 6 years ago

... this can close. Was a problem with my R environment due to some naming conflicts