Revision 923d0cc1f43c36debbea1f1fb06e4de448065380 authored by Gilles Raiche on 31 August 2019, 09:11:55 UTC, committed by cran-robot on 31 August 2019, 09:11:55 UTC
1 parent 592b098
makeCor.r
makeCor <-
function(x) {
if (is.matrix(x)) stop("x is not a vector.")
upper <- matrix(x,ncol=10, byrow=FALSE)
diag(upper) <- 0
lower <- matrix(x,ncol=10, byrow=TRUE)
res <- lower + upper
return(res)
}
Computing file changes ...