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 Nov. 2, 2024, 4:13 a.m.