Import excel files from a directory into a list.
xl_list(path) xl_list(path)
path | String; the path to a directory containing the files to read (all must be of appropriate format; see examples). |
---|---|
... | Arguments passed to the reader function. |
#> [1] "/home/travis/R/Library/fgeo.misc/extdata/xl"dir(path_xl)#> [1] "01.xls" "02.xlsx"xl_list(path_xl)#> $`01` #> $`01`$Sheet1 #> # A tibble: 5 x 2 #> x y #> <dbl> <chr> #> 1 1 a #> 2 2 b #> 3 3 c #> 4 4 d #> 5 5 e #> #> #> $`02` #> $`02`$Sheet1 #> # A tibble: 5 x 2 #> x y #> <dbl> <chr> #> 1 1 k #> 2 2 l #> 3 3 m #> 4 4 n #> 5 5 o #> #>