[R] Store filename
DAVID ARTETA GARCIA
darteta001 at ikasle.ehu.es
Fri Jun 6 17:51:34 CEST 2008
Is it possible to save the name of a filename automatically when
reading it using read.table() or some other function?
My aim is to create then an output table with the name of the original
table with a suffix like _out
mydata = read.table("Run224_v2_060308.txt", sep = "\t", header = TRUE)
## store name?
myfile = the_name_of_the_file
## do analysis of data and store in a data.frame "myoutput"
## write output in tab format
the name of the new file will be
Thanks in advanve,
More information about the R-help