R/unstructured.R

`unstructured` <-
function(dimension) {
  temp <- matrix(NA,dimension,dimension)
  diag(temp) <- 1
  for (i in 2:dimension) {
    for (j in 1:(i-1)) {
      temp[i,j] <- runif(1,-.9,.9)
      temp[j,i] <- temp[i,j]
    }
  }
  return(pc2c(temp))
}

Try the corcounts package in your browser

Any scripts or data that you put into this service are public.

corcounts documentation built on May 29, 2017, 6 p.m.