search for: spi1

Displaying 1 result from an estimated 1 matches for "spi1".

Did you mean: sp1
2012 Feb 02
1
gsub syntax help
I have some elements in a vector with extraneous information (e.g. file name and sample IDs) that I'd like to strip from every element. For example, I would like "SPI1.S1.str1.P3.sample.tif" "SPI1.S1.STR2.P1.sample.tif" to read "SPI1.S1.str1.P3" "SPI1.S1.STR2.P1". Will someone help me with the syntax in gsub? It needs to be something like gsub("garbage", "everything except garbage" , dataframe,), I think,...