Skip to content

Commit e965ac2

Browse files
committed
same but add purrr style
1 parent 176a284 commit e965ac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/functions_import_data.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363

6464
rasts <- tab$Var1 %>%
6565
as.character() %>%
66-
map(~ list.files(dir_path, full.names = TRUE, pattern = .x)) %>%
67-
map(rast) %>%
68-
reduce(merge)
66+
purrr::map(~ list.files(dir_path, full.names = TRUE, pattern = .x)) %>%
67+
purrr::map(rast) %>%
68+
purrr::reduce(merge)
6969

7070
} else {
7171
rasts <- files %>%

0 commit comments

Comments
 (0)