Nothing
#' Jmat
#'
#' Jmat peforms the generation of unit matrix.
#'
#' @param n integer
#' @return square matrix of order n
#' @export
#'
#' @details
#' An J matrix is a square matrix where all the entries are one.
#'
#' @examples
#' Jmat(4)
#'# [,1] [,2] [,3] [,4]
#'#[1,] 1 1 1 1
#'#[2,] 1 1 1 1
#'#[3,] 1 1 1 1
#'#[4,] 1 1 1 1
Jmat<-function(n){
jm<-matrix(c(rep(1,n)),nrow=n,ncol=n)
return(jm)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.