mhead: Get head of 2 dimensional object as a square block

Description Usage Arguments Value Examples

View source: R/utils.R

Description

head prints all columns which may flood the console, mhead takes a square block which can look nicer and still provide a good inspection of the contents

Usage

1
mhead(x, n = 6)

Arguments

x

the object with 2 dimensions

n

the size of the n-by-n block to extract

Value

an n-by-n sized subset of x

Examples

1
2
3
4
x <- matrix(runif(100), nrow = 10, ncol = 10)

mhead(x)
mhead(x, n = 3)

CellBench documentation built on Nov. 8, 2020, 5:11 p.m.