classify.ext {reader} | R Documentation |
Look for known file extensions and classify as binary, comma-separated, text format, or OTH=other; other files are assumed to be unreadable. To read other files, need to specify more types manually.
classify.ext(ext = NULL, more.txt = NULL, more.bin = NULL, more.csv = NULL, print.all = FALSE)
ext |
filenames or extensions to classify |
more.txt |
more extensions that should be treated as txt |
more.bin |
more extensions that should be treated as binary |
more.csv |
more extensions that should be treated as csv |
print.all |
setting to T, simply prints the list of supported ext |
returns the 4 way classification for each file/extension
Nicholas Cooper nick.cooper@cimr.cam.ac.uk
classify.ext(c("test.txt","*.csv","tot","other","rda","test.RDatA"))