formatA: A formating function for numbers

Description Usage Arguments Value Author(s) See Also Examples

Description

Formats a vector or matrix of numbers so that all have equal length (digits). This is especially suitable for printing tables.

Usage

1
formatA(x, digits = 2, FUN = round, ...)

Arguments

x

A numerical vector or matric

digits

The number of desired digits

FUN

Function used for "shortening" the numbers.

...

Additional arguments to format

Value

A character vector or matrix.

Author(s)

Aleš Žiberna

See Also

find.m, find.m2, find.cut

Examples

1
2
A<-matrix(c(1,1.02002,0.2,10.3),ncol=2)
formatA(A)

blockmodelingOld documentation built on May 2, 2019, 5:11 p.m.