本文介绍了R错误:输入格式未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
NEI <- readRDS(unz(tf, filename = "summarySCC_PM25.rds", open = "", encoding = getOption("encoding")))
描述是一个特定的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.
变量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:
在上述代码的上下文中,我从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错误:输入格式未知
发布评论