Learn R Programming

petersenlab (version 1.1.0)

specify_decimal: Specify Decimals.

Description

Specify the number of decimals to print.

Usage

specify_decimal(x, k)

Value

Character vector of numbers with the specified number of decimal places.

Arguments

x

Numeric vector.

k

Number of decimals to print.

Details

[INSERT].

See Also

Other formatting: apa(), pValue(), suppressLeadingZero()

Examples

Run this code
# Prepare Data
v1 <- rnorm(1000)

# Specify Decimals
specify_decimal(v1, 2)

Run the code above in your browser using DataLab