For in function in R for different groups of rows

后端 未结 0 565
甜味超标
甜味超标 2021-02-18 16:36

I have the following R objects:

y <- sample(c(0,2,2),1000,replace=T)
X <- matrix(runif(2000,0,2),ncol=2,byrow=T)*2

XX = t(X)%*%X
XY = as.numeric(t(X)%*%y)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题