unq_mmm_help: Combo Uniqueness and Extended Mode Properties

View source: R/unq_mmm_prop_funs.R

unq_mmm_helpR Documentation

Combo Uniqueness and Extended Mode Properties

Description

Functions for checking combinations of uniqueness and extended mode subject to any count or value restrictions in ....

Usage

unq_mmm_help()

unq_mmm(x, mmm, ...)

unq_mmm_funs()

unq_mmm_props()

unq_atm(x, ...)

unq_ch1(x, ...)

unq_ch3(x, ...)

unq_chr(x, ...)

unq_clr(x, ...)

unq_cor(x, ...)

unq_evn(x, ...)

unq_fac(x, ...)

unq_frc(x, ...)

unq_ind(x, ...)

unq_lgl(x, ...)

unq_num(x, ...)

unq_neg(x, ...)

unq_ngw(x, ...)

unq_nng(x, ...)

unq_nnw(x, ...)

unq_nps(x, ...)

unq_npw(x, ...)

unq_nst(x, ...)

unq_odd(x, ...)

unq_ord(x, ...)

unq_pct(x, ...)

unq_pos(x, ...)

unq_ppn(x, ...)

unq_psw(x, ...)

unq_srt(x, ...)

unq_str(x, ...)

unq_uno(x, ...)

unq_whl(x, ...)

Arguments

x

An R object.

mmm

A character scalar extended mode property from mmm_props()'.

...

Arguments passed on to meets

Functions

  • unq_mmm(): Checks x for completened and against the extended mode in mmm subject to any count and/or value restrictions in mmm. Returns a logical scalar.

  • unq_mmm_funs(): Lists all combo uniqueness plus extended mode property checking functions. Returns a character vector.

  • unq_mmm_props(): Lists all combo uniqueness plus extended mode properties.

  • unq_atm(): Checks x for uniqueness and for atomic-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ch1(): Checks x for uniqueness and for onechar-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ch3(): Checks x for uniqueness and for threechar-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_chr(): Checks x for uniqueness and for character-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_clr(): Checks x for uniqueness and for color-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_cor(): Checks x for uniqueness and for correlation-valued-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_evn(): Checks x for uniqueness and for even-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_fac(): Checks x for uniqueness and for factor-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_frc(): Checks x for uniqueness and for fractional-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ind(): Checks x for uniqueness and for indexer-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_lgl(): Checks x for uniqueness and for logical-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_num(): Checks x for uniqueness and for negative-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_neg(): Checks x for uniqueness and for negative-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ngw(): Checks x for uniqueness and for negative-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_nng(): Checks x for uniqueness and for non-negative-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_nnw(): Checks x for uniqueness and for non-negative-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_nps(): Checks x for uniqueness and for non-positive-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_npw(): Checks x for uniqueness and for non-positive-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_nst(): Checks x for uniqueness and for non-sortable-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_odd(): Checks x for uniqueness and for odd-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ord(): Checks x for uniqueness and for ordered-factor-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_pct(): Checks x for uniqueness and for percent-valued-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_pos(): Checks x for uniqueness and for positive-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_ppn(): Checks x for uniqueness and for proportion-value-numeric-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_psw(): Checks x for uniqueness and for positive-whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_srt(): Checks x for uniqueness and for sortable-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_str(): Checks x for uniqueness and for string-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_uno(): Checks x for uniqueness and for unordered-factor-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

  • unq_whl(): Checks x for uniqueness and for whole-number-ness subject to any count and/or value restrictions in .... Returns a logical scalar.

Specifying count and value restrictions

Specifying restrictions in ... is optional. The full set of recognized arguments names are defined in the following table along with the properties each specifies:

  ⁠.max, .maxr, .maxc⁠   Scalar maximum valid numbers of elements, rows, and columns, respectively.
   
  ⁠.min, .minr, .minc⁠ Scalar minimum valid numbers of elements, rows, and columns, respectively.
   
  ⁠.lt, .le, .ge, .gt⁠ Complete sortable scalar less-than, less-than-or-equal, greater-than-or-equal, and greater-than bounds, respectively.
   
  ⁠.n, .nr, .nc⁠ A vector of valid numbers of elements, rows, and columns, respectively.
   
  .vals A vector of valid values.

See Also

Other properties: as_mmm(), bbb_ccc_help(), bbb_help(), bbb_mmm_prop_funs(), ccc_help(), cls(), cmp_ccc_help(), cmp_mmm_ccc_help(), cmp_mmm_help(), compatible(), ddd_prop_funs(), eee_help(), iii_help(), meets(), mmm_ccc_help(), mmm_help(), ppp_fast_help(), ppp_help(), sss_ccc_help(), sss_prop_funs(), unq_ccc_prop_funs(), unq_mmm_ccc_help()

Examples

UnqClr <-  c("red", "blue", "#FFFFFF")
UnqCh3 <-  c("atm", "ch1", "ch3")
UnqCh1 <-  c("a", "b", "c")
UnqAtm <-  c("", "8", "a")
UnqChr <-  c("", " ", "a")
UnqFrc <-  c(0:10, 0.001)
UnqOrd <-  ordered(UnqAtm)
UnqNum <-  c(-pi, 0, exp(1))
UnqSrt <-  UnqNum
UnqPct <-  c(0, 50, 100)
UnqPpn <-  UnqPct / 100
UnqEvn <-  c(-2, 0, 2)
UnqWhl <-  c(-1, 0, 1)
UnqIn1 <-  c(T, F)
UnqPsw <-  1:3
UnqNnw <-  0:2
UnqNpq <- -UnqNnw
UnqPos <-  UnqPsw / 2
UnqNeg <- -UnqPos
UnqNps <-  UnqPos - 1
UnqNng <-  UnqNeg + 1
UnqLgl <-  UnqIn1
UnqIn2 <-  UnqPsw
UnqSrt <-  UnqNum
UnqStr <-  UnqCh1
UnqOdd <-  UnqEvn + 1
UnqPos <-  UnqPsw / 2
UnqNum <-  UnqOdd / 2
UnqNgw <- -UnqPsw
UnqNeg <- -UnqPsw / 2
UnqPsw <- -UnqNnw
UnqFac <-  factor(UnqAtm)
UnqNst <-  factor(UnqEvn, ordered = F)
UnqUno <-  factor(UnqEvn, ordered = T)

unq_mmm_funs()
unq_mmm(UnqAtm, "atm")
unq_mmm(UnqWhl, "ch1")
c(unq_atm(UnqAtm), unq_atm(NULL))
c(unq_ch1(UnqCh1), unq_ch1(UnqCh3), unq_ch1(c(UnqCh1, UnqCh1)))
c(unq_ch3(UnqCh3), unq_ch3(UnqCh1), unq_ch3(c(UnqCh3, UnqCh3)))
c(unq_chr(UnqChr), unq_chr(UnqNum), unq_chr(c(UnqChr, UnqChr)))
c(unq_clr(UnqClr), unq_clr(UnqCh1), unq_clr(c(UnqClr, UnqClr)))
c(unq_evn(UnqEvn), unq_evn(UnqOdd), unq_evn(c(UnqEvn, UnqEvn)))
c(unq_fac(UnqFac), unq_fac(UnqStr), unq_fac(c(UnqFac, UnqFac)))
c(unq_frc(UnqFrc), unq_frc(UnqWhl), unq_frc(c(UnqFrc, UnqFrc)))
c(unq_ind(UnqIn1), unq_ind(UnqNum), unq_ind(c(UnqIn1, UnqIn1)))
c(unq_ind(UnqIn2), unq_ind(UnqFrc), unq_ind(c(UnqIn2, UnqIn2)))
c(unq_lgl(UnqLgl), unq_lgl(UnqCh1), unq_lgl(c(UnqLgl, UnqLgl)))
c(unq_neg(UnqNeg), unq_neg(UnqNps), unq_neg(c(UnqNeg, UnqNeg)))
c(unq_neg(UnqNgw), unq_ngw(UnqNeg), unq_ngw(c(UnqNgw, UnqNgw)))
c(unq_nng(UnqNng), unq_nng(UnqNps), unq_nng(c(UnqNng, UnqNng)))
c(unq_nnw(UnqNnw), unq_nnw(UnqNng), unq_nnw(c(UnqNnw, UnqNnw)))
c(unq_nps(UnqNps), unq_nps(UnqNeg), unq_npw(c(UnqNps, UnqNps)))
c(unq_npw(UnqNpw), unq_npw(UnqNps), unq_npw(c(UnqNpw, UnqNpw)))
c(unq_nst(UnqNst), unq_nst(UnqSrt), unq_nst(c(UnqNst, UnqNst)))
c(unq_num(UnqNum), unq_num(UnqCh1), unq_num(c(UnqNum, UnqNum)))
c(unq_odd(UnqOdd), unq_odd(UnqEvn), unq_odd(c(UnqOdd, UnqOdd)))
c(unq_ord(UnqOrd), unq_ord(UnqUno), unq_ord(c(UnqOrd, UnqOrd)))
c(unq_pct(UnqPct), unq_pct(UnqNeg), unq_pct(c(UnqPct, UnqPct)))
c(unq_pos(UnqPos), unq_pos(UnqNng), unq_pos(c(UnqPos, UnqPos)))
c(unq_ppn(UnqPpn), unq_ppn(UnqPct), unq_ppn(c(UnqPpn, UnqPpn)))
c(unq_psw(UnqPsw), unq_psw(UnqPos), unq_psw(c(UnqPsw, UnqPsw)))
c(unq_srt(UnqSrt), unq_srt(UnqNst), unq_srt(c(UnqSrt, UnqSrt)))
c(unq_str(UnqStr), unq_str(UnqChr), unq_str(c(UnqStr, UnqStr)))
c(unq_uno(UnqUno), unq_uno(UnqOrd), unq_uno(c(UnqUno, UnqUno)))
c(unq_whl(UnqWhl), unq_whl(UnqNum), unq_whl(c(UnqWhl, UnqWhl)))

j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.