View source: R/functions_matrix_helpers.R
subset_dt | R Documentation |
efficiently subset data.table as one would a subrange of a matrix
subset_dt(dt, i_range, j_range, fill_square = FALSE)
dt |
a data.table containing i, j, and val |
i_range |
integer, range of i indexes to retrieve |
j_range |
integer, range of j indexes to retrieve |
fill_square |
logical, should region spanning below diagonal be filled in? |
subset of dt within ranges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.