numValueString {psychReport}R Documentation

numValueString

Description

Returns numerical value with requested unit in Latex format with numDigits number of decimal places and unit symbol.

Usage

numValueString(value, numDigits = 2, unit = "")

Arguments

value

number

numDigits

number 2 (default)

unit

"ms", "mv", "mV", or "%" or "" (default)

Value

character

Examples

# Example 1:
string <- numValueString(100.341, 0, "ms")

# Example 2:
string <- numValueString(2.3412, 2, "mv")

# Example 3:
string <- numValueString(63.9812, 2, "")


[Package psychReport version 3.0.2 Index]