List All Files with Specific Extension in R (Example) | Use list.files Function to Identify Pattern

preview_player
Показать описание
R code:

pattern = "xlsx") # Specify pattern

xlsx_files # Print list to console
Рекомендации по теме
Комментарии
Автор

Hey, is there any shortcut to refer the working directory? I'm new to R and I know I shouldn't typing it manually. Thank you

polygonmap
Автор

Hi Joachim
Thank for this

Is there a way to combine this function with progress bars? To see how many left?

ahmedJaber
Автор

hi, is it also possible to add another pattern into the code such as xlsx_files <- list.files(path = "C:/Users/Joachim Schork/Desktop/example_dir", # Specify path
pattern = "xlsx", pattern="") as I'm trying to implement something else. thanks in advance!

mattjonas