[R] Help! What does this R command mean?

Gabor Grothendieck ggrothendieck at gmail.com
Mon Jan 30 06:06:09 CET 2006


?":"
?"["

Also try
?"?"

Also
1. read the "An Introduction to R" manual.  On R Home page click on
Manuals under Documentation in the left hand column.
2. go to:
   http://cran.r-project.org/other-docs.html
and read your choice of documents.
3. print out this reference card and keep it handy:
  http://www.rpad.org/Rpad/R-refcard.pdf

On 1/29/06, Michael <comtech.usa at gmail.com> wrote:
> Hi all,
>
> R is so difficult. I am so desperate.
>
> What does the ":" mean in the following statement?
>
> What does the "[, -1]" mean?
>
> >
> > # Leaps takes a design matrix as argument: throw away the intercept
> > # column or leaps will complain
> >
> > X <- model.matrix(lm(V ~ I + D + W +G:I + P + N, election.table))[,-1]
>
> Thanks a lot!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list