[R] sub / gsub - extracting between identical symbols

Daniel Malter daniel at umd.edu
Thu Nov 20 09:08:44 CET 2008


Hi, I am trying to extract some numbers from a text string. The problem is
that the delimiting symbols are identical so that I do not know how to tell
"sub" between which of them to extract.

The string looks like this

12/01/03/08

The extracted variables should look like:

x1=12
x2=01
x3=03
x4=08

If anybody could help or point me to useful help, I would be greatful.

Cheers,
Daniel

-------------------------
cuncta stricte discussurus



More information about the R-help mailing list