Replying to self:
>
> Is there any equivalent to chartr for numeric values?
>
> Meaning, something like:
>
> numerictr(c(-1, 42, 666), 1:3, numeric.stuff)
>
> that replaces in "numeric.stuff" (a vector, matrix, etc) all instances
> of -1 for 1, 42 for 2 and 666 for 3?
>
match does it. Sorry to ask.

Alberto Monteiro

______________________________________________
R-help@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.

Reply via email to