format.code: Format a code object for pretty printing

View source: R/format.coded.R

format.codeR Documentation

Format a code object for pretty printing

Description

Format a code object for pretty printing

Usage

## S3 method for class 'code'
format(x, maxlen = getOption("CLMAXLEN", 8L), ...)

Arguments

x

a code object

maxlen

maximum length of the label. A length of 0 or lower will suppress adding the label to the output.

...

ignored

When maxlen is one or larger function will add the label of the code to the code in square brackets. When the label is larger than maxlen the label will be truncated.

Value

A character vector with the formatted code.


codelist documentation built on April 12, 2025, 2:25 a.m.