[R] Pattern matching and replacement in matrix

jim holtman jholtman at gmail.com
Wed May 19 13:52:16 CEST 2010


Exactly how do you want to do that? (PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.)
Provide a before/after example of what you want.  You could use the
'apply' functions.

On Wed, May 19, 2010 at 6:35 AM, Dani Valverde <daniel.valverde at uab.cat> wrote:
> Hello,
> Is there any function like gsub(), that can match and replace patterns in a
> matrix or a data frame?
> Cheers!
>
> Dani
>
> --
> Daniel Valverde Saubí
>
> Grup de Biologia Molecular de Llevats
> Facultat de Veterinària de la Universitat Autònoma de Barcelona
> Edifici V, Campus UAB
> 08193 Cerdanyola del Vallès- SPAIN
>
> Tlf. +34 93 581 1910
> Fax: +34 93 581 1573
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list