Learn R Programming

shard (version 0.1.0)

view_block: Create a contiguous block view

Description

Create a contiguous block view

Usage

view_block(x, rows = NULL, cols = NULL)

Value

A shard_view_block object representing the contiguous block slice.

Arguments

x

A shared (share()d) atomic matrix.

rows

NULL or idx_range().

cols

NULL or idx_range().

Examples

Run this code
# \donttest{
m <- share(matrix(1:20, nrow = 4))
v <- view_block(m, cols = idx_range(1, 2))
# }

Run the code above in your browser using DataLab