Thanks. That worked.
On Mon, Mar 23, 2009 at 2:17 PM, Phil Spector wrote:
> Suppose your matrix is called "x". Then
>
>x[,seq(1,ncol(x),n)]
>
> will give you what you want.
>
> - Phil Spector
> Statistical Computin
Hi,
I have a matrix and I want to create a matrix that includes every nth column
of the original matrix. Does anyone know how I can go about doing that ? Or
if you have an idea how I can do the same thing with a data frame ? If you
can just point me towards the appropriate function I would apprecia
2 matches
Mail list logo