prettyNum: prettyNum for matrices and tables

Description Usage Arguments Details Value Author(s) See Also

Description

Extension of the excellent prettyNum from base to work with matrix & data.frame objects.

Usage

1

Arguments

x

a data.frame, matrix or vector

...

arguments passed to prettyNum

Details

prettyNum is the utility function for prettifying x. x can be complex (or format(<complex>), matrix or data.frame here. If each element of x is not a character, format(x[i], ...) is applied to each element, and then it is left unchanged if all the other arguments are at their defaults. Note that prettyNum(x) may behave unexpectedly if elements of x are a character vector not resulting from something like format(<number>): in particular it assumes that a period is a decimal mark.

Value

A character object of same size and attributes as x, in the current locale's encoding.

Author(s)

Mark Cowley

See Also

prettyNum


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.