id column name is not rearranged as first column when id argument not specified
Closed this issue · 1 comments
adibender commented
Minimal repex:
library(pam)
data("leuk2", package="bpcp")
leuk2$pair <- NULL
leuk2$id = rownames(leuk2)
leuk2 <- leuk2[leuk2$id %in% 1:2, ]
split_data(Surv(time, status)~., data=leuk2)
split_data(Surv(time, status)~., data=leuk2, id="id")
adibender commented
cannot be fixed as we cannot anticipate the name of potential id variable and thus if it exists in the data set