base_round: A function to round values to any base

Description Usage Arguments Examples

View source: R/base_round.R

Description

This function will round values to any base (e.g., 25 or .25)

Usage

1

Arguments

x

is the vector you will be rounding

base

is the value you will be rounding to (e.g., 25 or .25)

Examples

1
2
base_round( c(23.67, 2.7, 52.9, 7.7, 99.4), base = .25 )
base_round( c(23.67, 2.7, 52.9, 7.7, 99.4), base = 25 )

joepowers16/breadcrumbs documentation built on Dec. 25, 2019, 4:13 p.m.