[R] binary operators that implement row and column sweeps of matrices by vectors
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sun Aug 9 12:35:01 CEST 2009
Steven Rytina wrote:
>
> Submitted for perusal, comment, improvements, and/or critique. The presentation is in 3 sections: motivation, code, and comment.
>
>
>
> Motivation:
>
>
>
> As a new-comer to R from matrix oriented Gauss and Mata, I miss the
tools for using a vector (and operator) to ‘sweep’ across a matrix.
And you have checked that this is not possible using sweep()??
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list