snippet | R Documentation |
Show snippet of a large vector/matrix
snippet(A, nrow = 5, ncol = nrow)
A |
a vector, matrix or array |
nrow |
number of rows to show |
ncol |
number of columns to show, ignored for vectors |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.