Is there any R function to delete a CSV file saved in disk? For example here
I have created following R function :
asd <- function(a = 5) {
dat <- read.delim(file="F:/Test.csv", header=T,
sep=",")
res <- dat[1,1]*a
# Here I want to delete "Test.csv"
return(res)
}
Here I am looking for a R function to delete "Test.csv" directly. Any
suggestion there?
Thanks
--
View this message in context:
http://n4.nabble.com/R-function-to-delete-a-csv-file-from-disk-tp1676122p1676122.html
Sent from the R help mailing list archive at Nabble.com.
I guess, you are looking for: ?file.remove Am 20.03.2010 20:36, schrieb Megh:> Is there any R function to delete a CSV file saved in disk? For example here > I have created following R function : > asd<- function(a = 5) { > dat<- read.delim(file="F:/Test.csv", header=T, sep=",") > res<- dat[1,1]*a > > # Here I want to delete "Test.csv" > > return(res) > > } > > Here I am looking for a R function to delete "Test.csv" directly. Any > suggestion there? > > Thanks > >