Skip to content
Prev 178798 / 398506 Next

selecting ith rows of a matrix

On Wed, Apr 29, 2009 at 01:58:06PM +0530, Umesh Srinivasan wrote:
Others ahve already poitned out soltions using seq9(). I'd just like
to add an alternative approach making use of R's logical indexing and 
recycling rules:

mat <- matrix(1:1000, 100, 5)
mat2 <- mat[c(T,F),]

cu
	Philipp