pformatter: Formats an object for pretty printing

Description Usage Arguments Details Value Methods (by class) Examples

Description

Format an object according to a format specification

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pformatter(value, format_spec)

## S3 method for class 'integer'
pformatter(value, format_spec)

## S3 method for class 'double'
pformatter(value, format_spec)

## S3 method for class 'complex'
pformatter(value, format_spec)

## S3 method for class 'character'
pformatter(value, format_spec)

## S3 method for class 'Date'
pformatter(value, format_spec)

## S3 method for class 'IDate'
pformatter(value, format_spec)

## S3 method for class 'ITime'
pformatter(value, format_spec)

## S3 method for class 'POSIXt'
pformatter(value, format_spec)

## Default S3 method:
pformatter(value, format_spec)

Arguments

value

any R object (conceptually)

format_spec

a character vector containing a specification

Details

pformatter is a generic function

Value

the formatted string representing the value

Methods (by class)

Examples

1
pformatter(10L, "<0d")

lurodrigo/pformat documentation built on May 21, 2019, 8:58 a.m.