R/randmat.R

Defines functions randmat

randmat <- function(m,n,k,randtype){
  set.seed(k)
  if(randtype == "n"){
    v <- matrix(rnorm(m*n),nrow=m, ncol=n)
  }else{
    v <- matrix(runif(m*n), nrow=m, ncol=n)
  }
  return(v)
}

Try the sdpt3r package in your browser

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

sdpt3r documentation built on May 2, 2019, 4:19 a.m.