[R] string to integer

Coen van Hasselt coenvanhasselt at gmail.com
Fri Apr 17 02:05:13 CEST 2009


?as.integer

xChar<-as.character(c(1,2,3))
xInt<-as.integer(xChar)

On Fri, Apr 17, 2009 at 09:38, Romildo Martins
<romildo.martins at gmail.com> wrote:
> Hi,
>
> exists a function to converts string to integer?
>
> Thanks
>
> Romildo Martins
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list