[R] gsub

Jean Eid jeaneid at chass.utoronto.ca
Thu Sep 23 16:03:04 CEST 2004


A while back I used gsub to do the following

gsub("something here", "", temp)

I think it involved the `meta characters' somehow.

I do not know how to do this anymore. I know strsplit will also work but I
remember gsub was much faster.  In essence the question is how to delete
all characters before a particular pattern.

If anyone has some help file for this, it will be greatly appreciated.

Jean Eid

More information about the R-help mailing list