Hi this is my script and I want only files with name 'pancreas'. How can I add this in my script? I have txt files.
This is my script:
- generate list of files in folder:
files <- data.frame(list.files(folder, recursive = TRUE, full.names = TRUE, pattern = '\\.txt$')[1:200])
colnames(files)[1] <- "path"
- drop records containing "slide.txt" in file name:
files <- subset(files, !grepl("slide.txt", files$path, fixed = TRUE))
Here's the screen shot of my codes:
