[R] wildcard operator

Eric Fail e at it.dk
Thu May 27 06:58:56 CEST 2010

Hi Ruser

As so usual I'm trying to replicate some SAS code. I wold like to know  
if there is a wildcard operators, as  " : " in SAS, in R?

When running:

lm(y ~ x1 + x2 + x3 + x4 + x5 + x6 .... x9860, data=mydata)

I would like to be able to get around it by just writing something  
like this:

lm(y ~ x1:x9860, data=mydata)


Sorry for no including a working example, but I figured that it wasn't  



More information about the R-help mailing list