mhead: Special head for table-like objects

View source: R/mhead.R

mheadR Documentation

Special head for table-like objects

Description

Show first n rows and columns of data.table/data.frame/matrix. Good for tables with many columns

Usage

mhead(data_df, n = 5)

Arguments

data_df

any data.table, data.frame, or matrix

n

number of rows and columns to subset by. Default is 5

Value

prints to console data_df[1:n,1:n]

Examples

data_mat <- matrix(1:10000, nrow = 100)
mhead(data_mat)
mhead(data_mat, 10)

weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.