Avoid Scientific notation in cut function in R

倾然丶 夕夏残阳落幕 提交于 2019-11-26 16:54:24

问题


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.



来源:https://stackoverflow.com/questions/29004620/avoid-scientific-notation-in-cut-function-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!