-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
It would be convenient if q defaulted to length(labels). (Example is from link).
library(gtools)
temp <- c(8.32, 8.43, 8.41, 7.86, 7.98, 7.86, 8.07, 8.51, 7.92, 7.94, 8.36)
labels = c("Low","Medium","High")
quantcut(temp, q = length(labels), labels = labels)
# if q had the above mentioned default we could write this witihout the redundant q.
quantcut(temp, labels = labels)
Metadata
Metadata
Assignees
Labels
No labels