ronkeizer / vpc

R library to create visual predictive checks (VPC)
Other
36 stars 20 forks source link

Cannot have id column that is a factor #75

Closed billdenney closed 3 years ago

billdenney commented 3 years ago

Related to nlmixrdevelopment/nlmixr#493

I have a nlmixr model that uses factors for the subject identifier (specifically, I just run as.factor() on the USUBJID). That causes an issue where all the ID values become NA. The issue appears to be due to the as.num() internal function converting the factors into character strings.

Pull request to make as.num() work more simply with factors forthcoming...