R: operasi file

From OnnoWiki
Revision as of 10:29, 6 November 2018 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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