is_cuttable: Determines if a vector should be cut when moedizing

Description Usage Arguments Value

View source: R/helpers.R

Description

Determines if a vector should be cut. Confirms if it inherits a class for which base::cut is implemented (cut.default uses is.numeric), then checks if there are more unique values than cuts requested.

Usage

1
is_cuttable(x, cuts)

Arguments

x

an atomic vector

cuts

An integer scalar determining how many cuts will be performed

Value

A boolean scalar


jarekkupisz/MOEDA documentation built on Dec. 20, 2021, 9:05 p.m.