[R] show colums x till end

Berry Boessenkool berryboessenkool at hotmail.com
Mon Jun 27 16:51:21 CEST 2011



Hey again,

I didn't wat questions to get mangled up, so here's my second email.

In matlab, there is the simple possibility to access colums x till last of a matrix using
mydata(1:3, 5:end).

In R, I so far use
mydata[1:3, 5:ncol(mydata)]

Is there a faster way? (in terms of typing)

Thanks ahead,
Berry

-------------------------------------
Berry Boessenkool
University of Potsdam, Germany
-------------------------------------
 		 	   		  


More information about the R-help mailing list