R错误:输入格式未知

编程入门 行业动态 更新时间:2024-10-23 23:26:56
本文介绍了R错误:输入格式未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 NEI <- readRDS(unz(tf, filename = "summarySCC_PM25.rds", open = "", encoding = getOption("encoding")))

变量tf 是一个临时文件,具有非常特定的位置,保存在硬盘驱动器上.据我了解, unz()是:

Variable tf is a temporary file with a very specific location saved on the hard drive. It is my understanding that the format for unz() is:

unz(description, filename, open = "", encoding = getOption("encoding"))

在阅读文档时,我解释说我对代码的应用是正确的:

As I read the documentation, I am interpreting that my application of the code is accurate as that:

  • 描述是一个特定的zip文件目标,在 var tf 中以c://...//345du.zip
  • 的形式输出
  • 文件名是summarySCC_PM25.rds,这是要从tf中提取
  • 的文件
  • open已在var中建立,所以黑色应该没问题
  • 编码可标记语言类型.
  • description is a specific zip file destination, which outputs in var tf as c://...//345du.zip
  • filename is summarySCC_PM25.rds, which is the file to be extracted from tf
  • open is already established in the var so black should be fine
  • encoding labels the language type.
  • 在上述代码的上下文中,我从R 3.1.1收到错误:未知的输入格式".我需要弄清可能发生的情况,因为我将代码解释为与以下代码相同:

    Within the context of the code above, I receive "Error: unknown input format" from R 3.1.1. I need clarification on what might be happening as that I interpret my code to be the same as:

    NEI <- readRDS("summarySCC_PM25.rds")

    我误解了吗?

    推荐答案

    由于临时文件是移动目标,请避免使用unz()并使用unzip(withanindex)

    Avoid unz() and use unzip(withanindex) since the temp file is a moving target

    更多推荐

    R错误:输入格式未知

    本文发布于:2023-10-18 11:16:00,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1504080.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   格式

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!