I am cutting a vector using cut
functionality:
num_seq <- 1:2000
break_m <- seq(0, 2000, by=30)
num_broken <- cut(num_seq, breaks = break_m)
unique(num_broken)
The problem is that the display of the categories num_broken
has e
notation
e.g. (1.35e+03,1.38e+03]
I tried the below:
as.numeric(num_broken)
But this just makes it a series of numbers like:
[1] 1 2 3 4 5 6 7 8 9 10 11 1
Also tried these, they don't help
format(unique(num_broken), digits = 10)
options(scipen=999)
How can I get an output like (1350,1380]