hash: Show an object as text output

#R Documentation

Show an object as text output

Description

This function makes copying and pasting the results of the analyses more straightforward. It adds a pound sign (⁠#⁠), or equivalent, before displaying each line of the output.

Usage

`#`(result, digits = 0, prefix = "#' #")

Arguments

result

an object to output

digits

the number of digits to display (default = 0)

prefix

the prefix added to each line (the default is roxygen friendly)

Examples

test <- runif(3)
test
round(test, digits = 2)
`#`(test, digits = 2)
`#`(test, prefix = "#")
`#`(data.frame(x = test, y = test), digits = 2, prefix = "#")

## Not run: 
## do not attempt to round a list:
  `#`(list(x = test, y = test), digits = 2, prefix = "#")

## End(Not run)

`#`(list(x = test, y = test), prefix = "#")


courtiol/twinR documentation built on July 11, 2024, 12:04 a.m.