请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
有点意思,搞了好久!
p=3 n=4 x=matrix(1:(n*p),nrow=p) m_m <- function(x){ y <- as.data.fr ame(as.matrix(x)%*%as.matrix(t(x))) } (reult_list <- (result=apply(x,2,m_m))) (output <-as.matrix(Reduce(`+`, reult_list)))
caozhaowen 发表于 2020-3-5 00:15 ```{r} p=3 n=4