data-raw/02-matrix.R

## nolint start
suppressPackageStartupMessages({
    library(usethis)
})
## nolint end
nrow <- 4L
ncol <- 4L
object <-
    matrix(
        data = seq(nrow * ncol),
        nrow = nrow,
        ncol = ncol,
        byrow = TRUE,
        dimnames = list(
            sprintf("gene%02d", seq_len(nrow)),
            sprintf("sample%02d", seq_len(ncol))
        )
    )
matrix <- object
use_data(matrix, overwrite = TRUE, compress = "xz")
acidgenomics/acidData documentation built on Nov. 9, 2023, 6:01 a.m.