Skip to content
Prev 164821 / 398506 Next

How to fetch specific part from a number of Text files?

On Mon, 15 Dec 2008, megh wrote:

            
I am not sure what that order would be. If you mean 'how would I order 
files by (say) creation date?', see

 	?file.info

Eventually you need a string that has the file name in it or a connection 
object (see ?connection)  that accesses the file(s).


Means, suppose, I have total
Hmmm. Something about this question is telling me you are either a novice 
programmer or really unfamiliar with R or perhaps you just need that extra 
cup of coffee.

In any but the latter case, let me suggest that it helps to reread the 
Intro to R (and any other books/manuals you might have), read help pages 
for possibly relevant functions, and to run example( file.info ), say, to 
get a handle on functions you are tying to learn. Also, rereading the 
_posting guide_ is helpful as it is, in part, a guide to figuring out 
things in R.


HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901