parseformat: Format descriptors

Description Details

Description

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.

Details

The output format is controlled by Fortran's format descriptiors; these usually take the form:

Integers

Iw

Numeric

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:

integer

If a scalar integer, it specifies the width. Other integer vectors default to I2.

numeric

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.

character

Used as-is, but prepended if necessary with either I or F.

Note: No checks are performed on the width and number of decimals.


stefanedwards/Siccuracy documentation built on May 30, 2019, 10:44 a.m.