hedo: show head in two directions

View source: R/handling_dataset.R

hedoR Documentation

show head in two directions

Description

To show the first 10 lines of a table, head() can be used. To show the first 10 columns as well, head(x[,1:10]) can be used. The "hedo()" function shortens this command to hedo(x,10). The number of rows/columns shown can be changed to any value.

Usage

hedo(x, n = 10)

Arguments

x

Input data frame or matrix.

n

Show the first n rows and columns, defaults to 10.

Value

The first n rows and columns of a data frame or matrix.

Examples

m <- matrix(sample(seq(0,100),225, replace=T), 15, 150)
m
head(m)
hedo(m)

allanecology/BetaDivMultifun documentation built on Nov. 9, 2023, 8:47 p.m.