Skip to content

Commit 0b430f4

Browse files
authored
Merge pull request #10 from InsightRX/cmt-integer
fix integer-numeric issue in dataset conversion
2 parents 187a3d1 + edff62a commit 0b430f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/reformat_data_nca_to_modeling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ reformat_data_nca_to_modeling <- function(
146146
## Convert remaining character columns to categorical (but numeric)
147147
for(key in names(comb)) {
148148
if (key %in% already_encoded) next
149-
if(! inherits(comb[[key]], "numeric")) {
149+
if(! rlang::inherits_any(comb[[key]], c("integer", "numeric"))) {
150150
suppressWarnings(
151151
comb[[key]] <- match(comb[[key]], unique(comb[[key]]))
152152
)

0 commit comments

Comments
 (0)