snippet: Show snippet of a large vector/matrix

View source: R/auxiliary.R

snippetR Documentation

Show snippet of a large vector/matrix

Description

Show snippet of a large vector/matrix

Usage

snippet(A, nrow = 5, ncol = nrow)

Arguments

A

a vector, matrix or array

nrow

number of rows to show

ncol

number of columns to show, ignored for vectors

Details

Show the first nrow entries of a vector, the first nrow x ncol submatrix of a matrix. If A is an array, then randomly sample the third to the last indices and show the first nrow x ncol entries in that frame.


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.