R: operasi file

From OnnoWiki
Jump to navigation Jump to search


file_vector <- list.files(path = ".")
file_vector
file_vector <- list.files(path = "..")
file_vector
file_vector %>% head()
# list file
#
file_list <- file_vector %>% head()
grepl(".pdf",file_list)
# pdf list
#
pdf_list <- file_vector[grepl(".pdf",file_list)]
pdf_list



Pranala Menarik