Some functions allow the user to alter the output format by using arguments int
and format
.
The latter argument accepts a number of ways to define the output.
The output format is controlled by Fortran's format descriptiors; these usually take the form:
Iw
Fw.d
where w
describes the width of the column (in characters) and d
the number of decimals.
Note: When using the I
format code, you must specify int=TRUE
. When using int=TRUE
, real values are rounded to nearest integer.
The type of accepted values for format
are:
If a scalar integer, it specifies the width. Other integer vectors default to I2
.
If a scalar numeric, the integer-part is used for width and the first decimal specifies the number of decimales. Other numeric vectors default to F5.2
.
Used as-is, but prepended if necessary with either I
or F
.
Note: No checks are performed on the width and number of decimals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.