dir.in
, copies files into dir.out
. Either list of file names in fname
, or all files from dir.in
that start from given prefix
and end with ending
and contain keyword key
. If during copying uncompressing files ending with ".txt.bz2" is needed, set untarbz
to TRUE.get.file.copy(dir.in, dir.out, fname = "", prefix = "", key = "", ending = "",
untarbz=FALSE, verbal = TRUE)
prefix
, key
and ending
).
prefix
, key
and ending
could not be found. This flag only matters if fname
="".
1. Either user provides a list of filenames that need to be copied over to dir.out
directory, in which case all prefix
, key
and ending
will be ignored.
2. Or fname
="" and some of the 3 parameters prefix
, key
and ending
are set. In which case the program will search for files in dir.in
that fulfill the specifications.
This function is basically file.copy, only it allows to pass in a list instead of a single file, and takes input in format that is similar to all other preprocessing functions in GenMOSS.
pre0.dir.create
print("See the demo 'gendemo'.")
Run the code above in your browser using DataLab