[R] An small suggestion for the R team

Gabor Grothendieck ggrothendieck at gmail.com
Fri Aug 5 00:26:01 CEST 2005


On 8/4/05, Jose Claudio Faria <joseclaudio.faria at terra.com.br> wrote:
> Hi all,
> 
> I would like to suggest that all R functions/etc like:
>   codes-deprecated
>   grid-internal
>   ns-alt
>   ns-dblcolon
>   ns-hooks
>   ns-internals
>   ns-lowlev
>   ns-reflect.Rd
>   tools-internal
>   ts-defunct
>   utils-deprecated
>   utils-internal
>   ... and another
> 
> i.e, function/word separate for '-'
> 
> were all substituted by
>   codes_deprecated
>   grid_internal
>   ns_alt
>   ns_dblcolon
>   ns_hooks
>   ns_internals
>   ns_lowlev
>   ns_reflect.Rd
>   tools_internal
>   ts_defunct
>   utils_deprecated
>   utils_internal
>   ... and another
> 
> i.e, by '_'
> 
> Because it is impossible to make a good highlighter with the first one.
> 
> How to differentiating myValue:
> 
> varOne = 100
> varTwo = 50
> myValue = varOne-varTwo
> 
> from codes-deprecated, or ns-alt, for example.

One can create a variable with a minus in it by using
backquotes:

> `a-b` <- 3
> a <- 10
> b <- 4
> `a-b` + a-b
[1] 9  # 3 + 10 - 4




More information about the R-help mailing list