R/identityMat.R

Defines functions identityMat

Documented in identityMat

##' Identity Matrix
##' 
##' Construct an identity matrix.
##' 
##' 
##' @param n a numeric describes the dimension of the identity matrix.
##' @return This function returns a matrix with the diagonal elements equal to
##' one and the off-diagonal elements equal to zero.
##' @author Kevin
##' @seealso \code{\link{diag}}
##' @references John J, Williams E (1987). \emph{Cyclic and computer generated
##' Designs}. Second edition. Chapman & Hall.
##' @examples
##' 
##' 
##' identityMat(10)
##' 
##' 
##' @export identityMat
identityMat <- function(n) diag(n) 

Try the infoDecompuTE package in your browser

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

infoDecompuTE documentation built on April 14, 2020, 7:08 p.m.