Skip to content

data manipulation between vector and matrix

1 message · arun

#
HI,
The option z5 takes care of it.
z5<-t(x-t(mat)) #still faster than ?sweep()
?dim(z5)
[1] 20? 2
?identical(sweep(-mat,2,x,"+"),z5)
#[1] TRUE


A.K.