Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prnz

Print and Object with its Name


Description

Prints an object with its name and with an optional descriptive text string. This is useful for annotating analysis output files and for debugging.

Usage

prn(x, txt, file)

Arguments

x

any object

txt

optional text string

file

optional file name. By default, writes to console. append=TRUE is assumed.

Side Effects

prints

See Also

Examples

x <- 1:5
prn(x)
# prn(fit, 'Full Model Fit')

Hmisc

Harrell Miscellaneous

v4.5-0
GPL (>= 2)
Authors
Frank E Harrell Jr <fh@fharrell.com>, with contributions from Charles Dupont and many others.
Initial release
2021-02-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.