mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 05:22:48 +02:00
WHONET/EARS-Net support
This commit is contained in:
@ -107,11 +107,7 @@ set_mo_source <- function(path) {
|
||||
if (!"readxl" %in% utils::installed.packages()) {
|
||||
stop("Install the 'readxl' package first.")
|
||||
}
|
||||
if (path %like% '[.]xlsx$') {
|
||||
df <- readxl::read_xlsx(path)
|
||||
} else {
|
||||
df <- readxl::read_xls(path)
|
||||
}
|
||||
df <- readxl::read_excel(path)
|
||||
|
||||
} else {
|
||||
# try comma first
|
||||
|
Reference in New Issue
Block a user