> How do I get sub-matrix? Example, I would like to get matrix of size 3x7
> from the matrix of size 4x7. Meaning that I try to exclude one row of the
> original matrix.

Just exclude the row by negative indexing - e.g. foo[-2,]

You may want to consider reading the "Introduction to R" where all these
concepts are explained to new users.

cu
        Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to