Check out ?chartr

On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> I want  replace characters within a vector. Outside R I could use sed,
> but I'd like to automate it in R. For example
>
> vectorx
> xxxyyz
> xxxyyza
> xxxyyzzb
>
> I want to change to:
>
> vectorx
> aaayyz
> aaayyza
> aaayyzzb
>
> The obvious replace command only deals with whole data entries?
> Any hints would be appreciated.
>
> Thanks
> Herry
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to