xrobin / pROC

Display and analyze ROC curves in R and S+
https://cran.r-project.org/web/packages/pROC/
GNU General Public License v3.0
118 stars 31 forks source link

Support for spaces in column names with formula #120

Closed xrobin closed 1 year ago

xrobin commented 1 year ago

Spaces in column names aren't supported by roc.formula:

test_dat <- aSAH[c("outcome", "age")]
colnames(test_dat)[2] <- "A ge"

roc(outcome ~ ., data=test_dat)
roc(outcome ~ `A ge`, data=test_dat)