Defines functions slice

Documented in slice

#' @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")

Try the rFTRLProximal package in your browser

Any scripts or data that you put into this service are public.

rFTRLProximal documentation built on May 29, 2017, 9:50 p.m.