Learn R Programming

lessR (version 3.3.1)

tP: Print Formatted Numbers

Description

Prints numbers nicely formatted. Primarily for internal use in text processing of knitr output. Not usually referenced by the user.

Usage

tP(var, d=NULL)

Arguments

var
The variable.
d
The digits.

Details

Input is numeric, output is formatted text.

Examples

Run this code
tP(12345678.9, d=2)

Run the code above in your browser using DataLab