Dear list,

I'd like to use the function cut() on matrices, ie that when I apply
it to a matrix, it would return a matrix of the same dimensions
instead of a vector.

I wonder if there is a better (more elegant) solution than

matrix(cut(a, ...), ncol=ncol(a), nrow=nrow(a))

because I would like to use cut on both vectors and matrices and avoid
testing whether a is a matrix.

Thanks,

Tamas

-- 
Tam�s K. Papp
E-mail: [EMAIL PROTECTED] (preferred, especially for large messages)
        [EMAIL PROTECTED]
Please try to send only (latin-2) plain text, not HTML or other garbage.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to