vectorShow: Show some values from a vector

Description Usage Arguments Value Author(s)

View source: R/misc.R

Description

This is similar to str, but it shows data at the first and last of the vector, which can be quite helpful in debugging.

Usage

1
vectorShow(v, msg, digits = 5, n = 2L)

Arguments

v

the vector.

msg

a message to show, introducing the vector. If not provided, then a message is created from v.

digits

for numerical values of v, this is the number of digits to use, in formatting the numbers with format; otherwise, digits is ignored.

n

number of elements to at start and end. If n is negative, then all the elements are shown.

Value

A string, suitable for using in cat or oceDebug.

Author(s)

Dan Kelley


oce documentation built on May 19, 2017, 10:14 a.m.

Search within the oce package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.