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)
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)
As suggested by Pascal,
Try with adding the argument dig.lab = 5 to cut function.
© 2022 - 2024 — McMap. All rights reserved.
dig.lab = 5
. – Gig?cut
. – Gigcut()
function cheerfully ignoresoptions('scipen'), options('digits')
etc. (It's also off-by-2 in the way it handles its owndig.lab
parameter) – Susuable