Skip to content

gsub syntax help

3 messages · Benjamin Caldwell, Sarah Goslee

#
In the example you gave, all that has to be done is
replace ".sample.tif" at the end of the string with "", which
is easy.
[1] "SPI1.S1.str1.P3" "SPI1.S1.STR2.P1"


If your real data are more complex, we need to know what they
look like.

Sarah

On Thu, Feb 2, 2012 at 4:42 PM, Benjamin Caldwell
<btcaldwell at berkeley.edu> wrote: