Displaying 1 result from an estimated 1 matches for "orthop101_dna_str".
Did you mean:
orthop100_dna_str
2010 May 28
1
How to get values out of a string using regular expressions?
Dear all,
I have a vector of filenames which begins like this :
X <- c("OrthoP1_DNA_str.aln", "OrthoP10_DNA_str.aln",
"OrthoP100_DNA_str.aln",
"OrthoP101_DNA_str.aln", "OrthoP102_DNA_str.aln", "OrthoP103_DNA_str.aln",
"OrthoP104_DNA_str.aln", "OrthoP105_DNA_str.aln", "OrthoP106_DNA_str.aln",
"OrthoP107_DNA_str.aln")
using
grep("(\\d+)",X,perl=T,value=T)
I get the complete values ba...