Skip to content
Prev 173686 / 398528 Next

search for string insider a string

That might be done by splitting the string into the portion before
dtest, the portion from dtest to the number but not including it,
the number and the rest. The s<- line splits it up into a list and
the next line reforms it into a character matrix replacing NULL
list items with NA:
[,1] [,2]             [,3]   [,4]
[1,] NA   NA               NA     NA
[2,] "bc" "dtestblabla"    "2.1"  "bla"
[3,] "c"  "dtestblablabla" "3.88" "blabla"
On Fri, Mar 13, 2009 at 3:10 PM, Tan, Richard <RTan at panagora.com> wrote: