RTFM! Especially the Introduction to R tutorial. Type help.start() at the prompt. It should open your web browser. Choose "Introduction to R". Only then will you attain enlightenment.
Simon. Michael 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@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 > > -- Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat. Centre for Resource and Environmental Studies The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au F: +61 2 6125 0757 CRICOS Provider # 00120C ______________________________________________ R-help@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