View source: R/candidate_functions.r
filelist | R Documentation |
filelist generate a data.frame of files in a directory including their properties - name, size, isdir, mdata and mtime, being the last modification data and time, adate and atime, being the last access dat and time. and finally a reference number to ease file selection. The option of searching for a text string within the complete filename is provided by the findtext argument.
filelist(indir, findtext = "", ignorecase = FALSE, silent = FALSE)
indir |
the directory whose contents are to be listed |
findtext |
a text string to be searched for, default="" |
ignorecase |
search on exact case or not, default=FALSE |
silent |
should no summary be sent to the console, default=FALSE |
a dataframe of filenames is returned and, if silent=TRUE, two lines of information are sent to the console
## Not run:
filelist(indir=getwd())
filelist(indir=getwd(),findtext="txt",ignorecase=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.