Description Usage Arguments Details Value Author(s) References See Also Examples
Generates a text file with the name of all files in a given directory and saves it as a tab delimited txt file. Helpful for filling in template files (see Loader) without making mistakes
1 | filenamex(input=file.path(system.file(package="agilp"),"input",""),output=file.path(system.file(package="agilp"),"output",""))
|
input |
full path of directory where input data files are put; default is a folder named input within the agilp package directory |
output |
full path of directory where output data files are put; default is a folder named output within the agilp package directory |
None
names.txt |
A tab delimited text file with the names of all the files in the input directory |
Benny Chain; b.chain@ucl.ac.ucl
In preparation
AAProcess
Loader
IDswop
Baseline
Equaliser
AALoess
1 2 3 4 5 6 7 8 9 10 11 | #This example makes a list of files in the folder agilp/extdata/raw and saves it in a file called names.txt (tab delimited) in the folder agilp/output.
inputdir<-file.path(system.file(package="agilp"),"extdata","raw/","", fsep = .Platform$file.sep)
outputdir<-file.path(system.file(package="agilp"),"output/", "", fsep = .Platform$file.sep)
filenamex(input=inputdir,output=outputdir)
## Not run:
#to remove these files again and empty the output directory use
unlink(paste(file.path(system.file(package="agilp"),"output",""),"*.*",sep=""), recursive=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.