Learn R Programming

peRspective (version 0.1.1)

specify_decimal: Specify a decimal

Description

Specify a decimal

Usage

specify_decimal(x, k)

Arguments

x

a number to be rounded

k

round to which position after the comma

Examples

Run this code
# NOT RUN {
## specify 2 decimals of a number
specify_decimal(1.0434, 2)
# }

Run the code above in your browser using DataLab