Displaying 1 result from an estimated 1 matches for "coverage_12".
Did you mean:
coverage_19
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: