sample_cols_spmat: sample_cols_spmat

sample_cols_spmatR Documentation

sample_cols_spmat

Description

This function takes in a sparse matrix, and then samples a single value from each column, with sampling weights within each column equal to the columns values

Usage

sample_cols_spmat(spmat, return_mat = TRUE)

Arguments

spmat

a sparse numeric matrix describing RPF's multimapping

return_mat

whether to a matrix for selecting the elements, as opposed to the summary data frame;defaults to TRUE

Value

A matrix of the


zslastman/RiboStan documentation built on June 12, 2024, 1:59 a.m.