middle: Return the middle portion of data similar to head and tail

middleR Documentation

Return the middle portion of data similar to head and tail

Description

Return the middle portion of data similar to head and tail

Usage

middle(x, n = 10, evenly = TRUE, ...)

Arguments

x

input data that can be subset

n

numeric number of entries to return

evenly

logical indicating whether to return evenly spaced entries along the full length of x. When evenly=FALSE only the middle n entries are returned.

...

additional arguments are ignored.

Details

This function is very simple, and is intended to mimic head() and tail() to inspect data without looking at every value

See Also

Other jam practical functions: breakDensity(), checkLightMode(), check_pkg_installed(), colNum2excelName(), color_dither(), diff_functions(), exp2signed(), fileInfo(), fixYellow(), getAxisLabel(), handleArgsText(), heads(), isFALSEV(), isTRUEV(), jamba, jargs(), kable_coloring(), lldf(), log2signed(), make_html_styles(), make_styles(), match_unique(), mergeAllXY(), minorLogTicks(), newestFile(), printDebug(), renameColumn(), rmInfinite(), rmNAs(), rmNA(), rmNULL(), sclass(), sdim(), setPrompt()

Examples

x <- 1:101;
middle(x);
middle(x, evenly=TRUE)

xdf <- data.frame(n=1:101,
   excel_colname=jamba::colNum2excelName(1:101));
middle(xdf)
middle(xdf, evenly=TRUE)


jmw86069/jamba documentation built on Oct. 9, 2024, 10:52 a.m.