Skip to contents

Applies the floor() function to a number with precision controlled by number of digits.

Usage

floor_digit(x, digits = 0)

Arguments

x

A numeric value or vector.

digits

Integer (default: 0). Number of decimal digits to retain.

Value

A numeric vector with values floored to specified digits.