ToString: Convert to Character String

View source: R/format.R

ToStringR Documentation

Convert to Character String

Description

Convert an object to a character string, suitable for including in error messages.

Usage

  ToString(object, ...)

Arguments

object

An object to be printed to a string.

...

Extra arguments passed to print.

Value

A string (a character vector of length 1) containing the printed value of the object.

Author(s)

Steven L. Scott steve.the.bayesian@gmail.com

Examples

  m <- matrix(1:6, ncol = 2)
  printed.matrix <- ToString(m)

  y <- c(1, 2, 3, 3, 3, 3, 3, 3)
  tab <- table(y)
  printed.table <- ToString(tab)

Boom documentation built on Nov. 10, 2022, 5:56 p.m.

Related to ToString in Boom...