Displaying 2 results from an estimated 2 matches for "coverage_".
Did you mean:
coverage
2008 Sep 30
3
Pattern match in R
I want to make sure this piece of code I wrote is doing what I want it to do.
ll<-function(string)
{
grep(string,dir(),value=T)
}
subdir = ll("Coverage_[1-9][0-9]$")
I basically wrote a little function that would grab all the files of form
Coverage_[0-99]
The way I wrote it, will it grab Coverage_5 or does it have to have 2
numbers (10-99)?
--
View this message in context: http://www.nabble.com/Pattern-match-in-R-tp19743389p19743389.html
S...
2008 Sep 15
1
Scripting in R -- pattern matching, logic, system calls, the works!
Im very new to R so this might be a very simple question. First I'll lay out
the hierarchy of my directories, goals.
I have say 5 directories of form "Coverage_(some number)" and each one of
these I have text files of form "Length_(some number)" which are comprised
of say 30 numbers. Each one of these Length files (which are basically
incremented by 5 from 0 to 100, Length_(0,5,10,15,20) are to be averaged
where the average is the y-value a...