📜  如何上传多个 excel 文件 r - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:48.196000             🧑  作者: Mango

代码示例1
read_plus <- function(flnm) {
    read_csv(flnm) %>% 
        mutate(filename = flnm)
}

tbl_with_sources <-
    list.files(pattern = "*.csv", 
               full.names = T) %>% 
    map_df(~read_plus(.))