避免在R中的剪切功能中使用科学计数法 [英] Avoid Scientific notation in cut function in R
本文介绍了避免在R中的剪切功能中使用科学计数法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何避免在cut函数创建的间隔中出现科学计数法。
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)
推荐答案
根据Pascal的建议,
尝试添加参数 dig.lab = 5 来剪切函数。
Try with adding the argument dig.lab = 5 to cut function.
这篇关于避免在R中的剪切功能中使用科学计数法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文