Skip to contents

Truncate a decimal by rounding or converting to scientific notation. Originally intended for p-values.

Usage

knife(x, digits = 4)

Arguments

x

Vector of numeric values

digits

Number below which value is converted to scientific notation.

Value

Truncated values