man-roxygen/weightedExamples.R

#' @examples
#' mat <- matrix(rnorm(15), nrow = 5, ncol = 3)
#' mat[2, 1] <- NA
#' mat[3, 3] <- Inf
#' mat[4, 1] <- 0
#'
#' print(mat)
#' w <- rnorm(n = 5, mean = 3)
#' <%= rowName %>(mat, w = w[1:3])
#' <%= colName %>(mat, w = w)
Bioconductor/MatrixGenerics documentation built on April 19, 2024, 8:19 a.m.