R/VTM.R

Defines functions VTM

Documented in VTM

#'VTM
#'
#'Repeats a vector as identical rows of a matrix
#'
#'@param vc vector to be repeated
#'@param dm number of times that \code{vc} should be repeated
#'
#'@return a matrix of \code{dm} rows
#'
#'@keywords internal
#'@export
VTM <- function(vc, dm){
  matrix(vc, ncol=length(vc), nrow=dm, byrow=T)
}

Try the kernscr package in your browser

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

kernscr documentation built on April 17, 2023, 5:09 p.m.