On Tue, 30 May 2000 Bevan Blair <BBlair@dkb.com> wrote:
> I assume there is an easy way to do this but I seem to be coming up against a
> brick wall. I am using Splus 2000 on Windows NT.
>
> Say I have a bunch of text files in a directory all with the same name
> structure
> apart from a number at the tail end
> (e.g blah1, blah2 blah3 etc). Is there a simple way of reading all these files
> into splus at once so that blah1 for instance becomes
> a blah1 object in splus?
Is something like
files <- paste("blah", 1:3, sep="")
for(f in files) write(file=f, rep(f, 10))
for(f in files) assign(f, scan(f, ""))
what you are looking for?
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|