Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.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 read.xlsx给我java.io.FileNotFoundException_R_R Xlsx - Fatal编程技术网

R read.xlsx给我java.io.FileNotFoundException

R read.xlsx给我java.io.FileNotFoundException,r,r-xlsx,R,R Xlsx,我正在尝试使用R软件包xlsx加载此URL上可用的文件: 下载后,我尝试使用read.xlsx或read.xlsx2将其加载到R中: file <- system.file("mobile.element.insertions.1000g", filename, package = "xlsx") res <- read.xlsx2(file, 1) # read first sheet 文件1)xlsx包。尝试使用文件。选择,可以交互导航到该文件,从而消除错误识别该文件的可能

我正在尝试使用R软件包
xlsx
加载此URL上可用的文件:

下载后,我尝试使用
read.xlsx
read.xlsx2
将其加载到R中:

file <- system.file("mobile.element.insertions.1000g", filename, package = "xlsx")
res <- read.xlsx2(file, 1)  # read first sheet
文件1)xlsx包。尝试使用
文件。选择
,可以交互导航到该文件,从而消除错误识别该文件的可能性:

fn <- file.choose()
DF <- read.xls(fn, 1)
?gdata中的read.xls
有更多信息。

1)确保您位于正确的目录中。2) 让生活变得轻松,并将文件重命名为简短而甜蜜的文件,不带所有的点。
fn <- file.choose()
DF <- read.xls(fn, 1)
library(gdata)
URL <- "http://www.plosgenetics.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pgen.1002236.s019"
DF <- read.xls(URL)