[R] highlighting constants

2009-09-14 Thread darkhorn
Hi, a developer asked me something (we were talking about a issue in R highlighting) Here it is: P.S.: Shouldn't constants like TRUE, FALSE, Inf, NaN, NA ... be marked up too? Like in: # iNA - as.integer(NA) # !is.na(Inf) !is.nan(Inf)is.infinite(Inf) !is.finite(Inf) # !is.na(-Inf)

[R] the integer of a given location

2009-09-12 Thread darkhorn
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

Re: [R] the integer of a given location

2009-09-12 Thread darkhorn
Thank you very much. :-) as.integer(substring(as.character(z), 2, 2)) [1] 8 as.integer(foo2(z,2)) [1] 8 -- View this message in context: http://www.nabble.com/the-integer-of-a-given-location-tp25418729p25419555.html Sent from the R help mailing list archive at Nabble.com.