Description Usage Arguments Details Value Methods (by class) Examples
Format an object according to a format specification
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)
|
value |
any R object (conceptually) |
format_spec |
a character vector containing a specification |
pformatter is a generic function
the formatted string representing the value
integer:
double:
complex:
character:
Date:
IDate:
ITime:
POSIXt:
default:
1 | pformatter(10L, "<0d")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.