From ehlers at math.ucalgary.ca  Wed Mar 22 18:48:28 2006
From: ehlers at math.ucalgary.ca (P Ehlers)
Date: Wed, 22 Mar 2006 10:48:28 -0700
Subject: [Rd] Choose.files to give shortnames
In-Reply-To: <A9890059664CAD468E43D67208E576C76BDEAF@icex5.ic.ac.uk>
References: <A9890059664CAD468E43D67208E576C76BDEAF@icex5.ic.ac.uk>
Message-ID: <44218DEC.5090408@math.ucalgary.ca>

Would

basename(choose.files())

work for your usage?
Still, a full.names argument might be useful.

Peter Ehlers

Brooks, Anthony B wrote:

> Hi
> I am writing a script to generate a QC report for some data based on a number of files. I am currently using the choose.files function to select the files as not all the files need to be QC'd. One minor issue is that choose.files returns the complete path of the filename (eg "C:/QCdata/Test1/File01", "C:/QCdata/Test1/File02"...). Is it possible to use choose.files to return just the file name eg("File01", "File02"...), in a way similar to the full.names=FALSE argument in the dir function.
> 
> Thanks
> Tony
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Choose.files to give shortnames
P Ehlers