[R] the integer of a given location

jim holtman jholtman at gmail.com
Sun Sep 13 02:24:58 CEST 2009


Is this what you want:

> z<-78923698701
> substring(as.character(z), 2, 2)
[1] "8"
>


On Sat, Sep 12, 2009 at 6:16 PM, darkhorn <darkhorn at gmail.com> wrote:
>
> I have a huge number such as 78923698701
> z<-78923698701
> I want to find the integer of a given location, for example here, what is
> the 2nd number? 8.
>
> Thanks in advance!
> --
> View this message in context: http://www.nabble.com/the-integer-of-a-given-location-tp25418729p25418729.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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