Nothing
#' @title Subsetting dgCMatrix
#'
#' @description
#' Returns subsets of a \code{dgCMatrix}.
#'
#' @param x a transposed \code{dgCMatrix}.
#' @param i logical expression indicating elements or rows to keep.
#' @return A transposed \code{dgCMatrix} containing the subset of rows that are selected.
#' @export
slice <- function(x, i) {
x_slice <- x[,i]
attr(x_slice, "mapping") <- attr(x, "mapping")
return(x_slice)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.