[R] Translation of the charter

Eric Berger er|cjberger @end|ng |rom gm@||@com
Mon Nov 1 21:15:26 CET 2021


> R.oo::charToInt(x)

# [1] 97 98 99


On Mon, Nov 1, 2021 at 9:48 PM Alice <alice using coakmail.com> wrote:
>
> Dear members,
>
> How to translate the charter to the underline inter?
> I tried this:
>
> > x <- c("a","b","c")
>
> > as.numeric(x)
>
> [1] NA NA NA
>
> Warning message:
>
> NAs introduced by coercion
>
>
> It didn't work.
>
> Sorry for my newbie questions.
>
>
> B.R.
>
> Alice
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list