Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.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_Format - Fatal编程技术网

格式编号-R中的工程符号

格式编号-R中的工程符号,r,format,R,Format,数字的工程表示法类似于科学表示法,但指数必须是3的倍数。这很方便,因为它涉及千、兆、千兆等 163500000 # the number 1.635E8 # scientific notation = what R does 163.5E6 # engineering notation = metric / SI prefix R是否具有将数字格式化为SI前缀的功能?我只能发现科学符号。[有一个函数,可以追溯到2006年]。给定的链接解决方案有什么问题?如果我通过选项在R中

数字的工程表示法类似于科学表示法,但指数必须是3的倍数。这很方便,因为它涉及千、兆、千兆等

163500000   # the number
1.635E8     # scientific notation = what R does
163.5E6     # engineering notation = metric / SI prefix

R是否具有将数字格式化为SI前缀的功能?我只能发现科学符号。[有一个函数,可以追溯到2006年]。

给定的链接解决方案有什么问题?如果我通过选项在R中提供格式,它将成为我不必再担心的解决方案。当我在链接中应用函数时,我必须将其精确地应用于数值列,否则它会弄乱我的data.frame。然后仅将其应用于那些返回
TRUE
for
is.numeric()