https://github.com/cran/nFactors
Tip revision: 4de3e280a6f88cfcdfa131581cebe9aa005ec68a authored by Gilles Raiche on 10 April 2010, 00:00:00 UTC
version 2.3.2
version 2.3.2
Tip revision: 4de3e28
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)
}