问答详情
源自:4-7 总结数据信息

print(object.size(airquality),units =“kb”)

print(object.size(airquality),units =“kb”)

结果显示错误

Error in match.arg(units, c("auto", unique(unlist(known_units), use.names = FALSE))) : 

  'arg'应当是“auto”, “B”, “kB”, “MB”, “GB”, “TB”, “PB”, “EB”, “ZB”, “YB”, “KiB”, “MiB”, “GiB”, “TiB”, “PiB”, “EiB”, “ZiB”, “YiB”, “b”, “Kb”, “Mb”, “Gb”, “Tb”, “Pb”, “KB”其中的一个

这是怎么回事

提问者:慕UI9587335 2018-09-30 23:43

个回答

  • 慕UI9587335
    2018-09-30 23:47:11

    把kb按要求改成KB或Kb就行,如果改成kB,会显示

    Error in format.object_size(x, units = units, standard = standard, digits = digits) : 

      For SI units, specify 'standard = "SI"'