Learn R Programming

corto (version 1.2.4)

slice: Slice

Description

This function prints a slice of a matrix

Usage

slice(matrix)

Value

A visualization of the first 5 rows and columns of the input matrix

Arguments

matrix

A matrix

Examples

Run this code
set.seed(1)
example<-matrix(rnorm(1000),nrow=100,ncol=10)
slice(example)

Run the code above in your browser using DataLab