[R] The end of Matlab

Claudia Beleites cbeleites at units.it
Fri Dec 12 12:09:15 CET 2008


Dear list,

> Learning to use the power of R's indexing and functios like head() and
> tail() (which are just syntactic sugar) will probably lead you not to miss
> this.
However, how do I exclude the last columns of a data.frame or matrix (or, in 
general, head and tail for given dimensions of an array)?

I.e. something nicer than 
t (head (t (x), -n))
for excluding the last n columns of matrix x

THX, Claudia


-- 
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Università degli Studi di Trieste
Via Alfonso Valerio 6/a
I-34127 Trieste

phone: +39 (0 40) 5 58-34 47
email: cbeleites at units.it



More information about the R-help mailing list