Skip to contents

Span a Vector around x if Condition is met

Usage

spanIf(condition, x, digits = 4)

Arguments

condition

logical. If TRUE a vector around x is spanned

x

value around which to span a vector (or not if condition is FALSE)

digits

number of digits to which the values are rounded