由买买提看人间百态

topics

全部话题 - 话题: rmat
(共0页)
q**j
发帖数: 10612
1
来自主题: Statistics版 - 如何让R读取一个empty csv 文件?
Can you give some more details?
i used
tryCatch(RMAT = as.matrix(read.csv(file='D:/RMAT.csv',header=F)))
but the program would still halt at this step in dos batch mode.
O*****y
发帖数: 222
2
来自主题: Statistics版 - 如何让R读取一个empty csv 文件?
res <- try(RMAT <- as.matrix(read.csv(file='D:/RMAT.csv',header=F)), silent=
TRUE)
if (class(res) == "try-error") {
....
} else {
...
}
(共0页)