paste.vec: Utility for 'Showing' S vectors

View source: R/misc-goodies.R

paste.vecR Documentation

Utility for 'Showing' S vectors

Description

A simple utility for displaying simple S vectors; can be used as debugging utility.

Usage

paste.vec(name, digits = options()$digits)

Arguments

name

string with an variable name which must exist in the current environment (R session).

digits

how many decimal digits to be used; passed to format.

Value

a string of the form "NAME = x1 x2 ..."

Author(s)

Martin Maechler, about 1992.

Examples

 x <- 1:4
 paste.vec(x)   ##->  "x = 1 2 3 4"

sfsmisc documentation built on Sept. 11, 2024, 6:53 p.m.