Avoid Scientific notation in cut function in R

2020-01-29 08:44发布

问题:

How to avoid scientific notation present in the Intervals created by the cut function.

a<-seq(10000,50000, by=500 )
cut(a, breaks = seq(0,max(a)+300, by = 300))

I have tried the below but it doesn't help.

options("scipen"=100, "digits"=4)

回答1:

As suggested by Pascal,

Try with adding the argument dig.lab = 5 to cut function.