Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何防止R中的科学符号?_R - Fatal编程技术网

如何防止R中的科学符号?

如何防止R中的科学符号?,r,R,我的图以e符号的形式显示y轴上的值。我应该使用哪个命令来获取数字形式的值。所用文件中的值是否为数字形式? 谢谢尝试格式功能: > xx = 100000000000 > xx [1] 1e+11 > format(xx, scientific=F) [1] "100000000000" 要在整个R会话中设置科学记数法的使用,可以使用scipen选项。从文档(?选项)中: 所以本质上,这个值决定了触发科学符号的可能性。因此,为了防止科学记数法,只需使用一个大的正值,如999:

我的图以e符号的形式显示y轴上的值。我应该使用哪个命令来获取数字形式的值。所用文件中的值是否为数字形式?
谢谢

尝试
格式
功能:

> xx = 100000000000
> xx
[1] 1e+11
> format(xx, scientific=F)
[1] "100000000000"

要在整个R会话中设置科学记数法的使用,可以使用
scipen
选项。从文档(
?选项
)中:

所以本质上,这个值决定了触发科学符号的可能性。因此,为了防止科学记数法,只需使用一个大的正值,如
999

options(scipen=999)

什么是“e符号”?科学符号?您可以使用
options(scipen=999)
将其关闭,然后使用
options(scipen=0)
再次打开,但这会在执行类似取消列表的操作时添加许多跟踪零
options(scipen=999)