[R] faraway tutorial: cryptic command to newbie

About this list Date view Thread view Subject view Author view Attachment view

From: Christoph Lehmann (lehmann@puk.unibe.ch)
Date: Sun 23 Feb 2003 - 03:49:13 EST


Message-id: <1045932555.3686.6.camel@christophl>

I am just about working through Faraways excellent tutorial "practical
regression and ANOVA using R"

on page 24 he makes the x matrix:
x <- cbind(1,gala[,-c(1,2)])

how can I understand this gala[,-c(1,2)])... I couldn't find an
explanation of such "c-like" abbreviations anywhere.

thanks for a hint.

another problem: I couldn't load the faraway library, using the
library() command, even though I specified the path, .. do I need to put
library files into a certain directory? I always got an error: Error in
library(faraway) : There is no package called `faraway'

Thanks a lot

christoph

-- 
Christoph Lehmann 
Department of Psychiatric Neurophysiology 
University Hospital of Clinical Psychiatry 
Waldau 
CH-3000 Bern 60 
Switzerland 

Phone: ++41 31 930 93 83 Mobile: ++41 31 570 28 00 Fax: ++41 31 930 99 61 Email: lehmann@puk.unibe.ch Web: http://www.puk.unibe.ch/cl/pn_ni_cv_cl.html

______________________________________________ R-help@stat.math.ethz.ch mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:23 EST