R/eye.R

Defines functions eye

Documented in eye

#' Create Identity Matrix
#'
#' This function returns an NxN identity matrix.
#'
#' @param N dimension of square matrix
#' @return NxN identity matrix
#' @export
eye = function(N){
  return(diag(rep(1,N)))
}

Try the fabPrediction package in your browser

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

fabPrediction documentation built on May 29, 2024, 7:05 a.m.