[R] Help! What does this R command mean?
ggrothendieck at gmail.com
Mon Jan 30 06:06:09 CET 2006
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:
and read your choice of documents.
3. print out this reference card and keep it handy:
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
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help