Skip to content

Commit

Permalink
cast factors to character in setup_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Apr 11, 2023
1 parent 4dd40d4 commit 43d871b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/AnalysisConfiguration.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ setup_analysis <- function(data, configuration, cc = TRUE ){
data <- tidyr::unite(data, UQ(sym(table$factor_keys()[i])), table$factors[[i]],remove = FALSE, sep = configuration$sep)
} else {
newname <- table$factor_keys()[i]
data <- dplyr::mutate(data, !!newname := !!sym(table$factors[[i]]))
data <- dplyr::mutate(data, !!newname := as.character(!!sym(table$factors[[i]])))
}
}

Expand Down

0 comments on commit 43d871b

Please sign in to comment.