[R] highlighting constants

darkhorn darkhorn at gmail.com
Mon Sep 14 20:13:01 CEST 2009


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)& !is.nan(-Inf)&   is.infinite(-Inf)& !is.finite(-Inf)
#
 is.na(NA)  & !is.nan(NA)  &  !is.infinite(NA)  & !is.finite(NA)
#
 is.na(NaN) &  is.nan(NaN) &  !is.infinite(NaN) & !is.finite(NaN)
#
 is.na(iNA) & !is.nan(iNA) &  !is.infinite(iNA) & !is.finite(iNA)


What you want to say?
-- 
View this message in context: http://www.nabble.com/highlighting-constants-tp25440669p25440669.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list