[R] faraway tutorial: cryptic command to newbie

Adaikalavan Ramasamy gisar at nus.edu.sg
Mon Feb 24 06:31:03 CET 2003

c = concatenate / combine 
Try help(c) or under the 'Vector and Assignments' section of An
Introduction to R.

You have to put the folder 'faraway' into c:/.../R/rw1061/library/
where ... is your path to R and rw1061 could be rw1062 ect depending on
your version.

-----Original Message-----
From: Christoph Lehmann [mailto:lehmann at puk.unibe.ch] 
Sent: Sunday, February 23, 2003 12:49 AM
To: r-help at stat.math.ethz.ch
Subject: [R] faraway tutorial: cryptic command to newbie

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 Lehmann 
Department of Psychiatric Neurophysiology 
University Hospital of Clinical Psychiatry 
CH-3000 Bern 60 

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

R-help at stat.math.ethz.ch mailing list

More information about the R-help mailing list