R/mydiag.R

Defines functions mydiag

mydiag <- function(d){
  if(length(d)==1 && d%%1!=0){return(d)}else{
    return(diag(d))
  }

}

Try the autoMFA package in your browser

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

autoMFA documentation built on Aug. 10, 2021, 5:07 p.m.