round2str: rounded and converted to string of numbers

Description Usage Arguments Details Author(s) Examples

Description

Rounded and converted to string of numbers to the specified number of decimal places.

Usage

1
round2str(x, r = 12)

Arguments

x

A numeric, vector, matrix or data frame of numeric.

r

A integer indicating the number of decimal places.

Details

Unlike round function, round2str function cross-section numbers to the specified number of decimal places and then converted result to string.

Author(s)

Hong Viet Minh <hongvietminh@gmail.com>

Examples

1
2
3
4
a<-rnorm(3)
a
round2str(a,r=2)
round2str(a,r=5)

AnalyzeTS documentation built on Dec. 9, 2019, 1:07 a.m.