unq_ccc_prop_funs: Combo Uniqueness and Extended Class Properties

View source: R/unq_ccc.R

unq_ccc_prop_funsR Documentation

Combo Uniqueness and Extended Class Properties

Description

Functions checking for combinations of uniqueness and extended class.

Usage

unq_ccc_prop_funs()

unq_ccc(x, ccc, ...)

unq_ccc_funs()

unq_ccc_props()

unq_arr(x, ...)

unq_dtf(x, ...)

unq_gen(x, ...)

unq_mat(x, ...)

unq_mvc(x, ...)

unq_scl(x, ...)

unq_vec(x, ...)

unq_vls(x, ...)

Arguments

x

An R object.

ccc

A character scalar single extended property from ccc_props().

...

Arguments passed on to meets

Functions

  • unq_ccc(): Checks x for uniqueness and against the extended class in ccc. Return a logical scalar.

  • unq_ccc_funs(): Lists all combo uniqueness and extended class property checking functions. Returns a sorted, lowercase, character vector.

  • unq_ccc_props(): Lists all combo uniqueness and extended class properties.

  • unq_arr(): Checks x for completeness and array-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_dtf(): Checks x for completeness and data.frame-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_gen(): Checks x for completeness and generic-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_mat(): Checks x for completeness and matrix-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_mvc(): Checks x for completeness and multivec-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_scl(): Checks x for completeness and scalar-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_vec(): Checks x for completeness and vec-ness, subject to any count or content restrictions in .... Returns a logical scalar.

  • unq_vls(): Checks x for completeness and vector-list-ness, subject to any count or content 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_mmm_ccc_help(), unq_mmm_help()

Examples

UnqArr <- array(1:27, dim = c(3, 3, 3))
UnqDtf <- data.frame(a = c("a", "b", "c"), b = 1:3)
UnqMat <- matrix(1:9, nrow = 3)
UnqMvc <- 1:2
UnqScl <- 1
UnqVec <- "a"
UnqVls <- list(a = letters, b = 1:3)

unq_ccc_prop_funs()
unq_ccc(UnqArr, "arr")
unq_ccc(UnqVls, "dtf")
c(unq_dtf(UnqDtf), unq_arr(UnqArr), unq_arr(rbind(UnqDtf, UnqDtf)))
c(unq_mat(UnqMat), unq_arr(UnqVls), unq_arr(rbind(UnqMat, UnqMat)))
c(unq_arr(UnqArr), unq_arr(UnqDtf), unq_arr(c(UnqArr, UnqArr)))
c(unq_gen(UnqArr), unq_arr(UnqDtf), unq_arr(c(UnqArr, UnqArr)))
c(unq_gen(UnqVec), unq_arr(UnqArr), unq_arr(c(UnqVec, UnqVec)))
c(unq_gen(UnqMvc), unq_arr(UnqScl), unq_arr(c(UnqMvc, UnqMvc)))
c(unq_gen(UnqScl), unq_arr(UnqMvc), unq_arr(c(UnqScl, UnqScl)))
c(unq_mvc(UnqMvc), unq_arr(UnqVec), unq_arr(c(UnqMvc, UnqMvc)))
c(unq_scl(UnqScl), unq_arr(UnqMvc), unq_arr(c(UnqScl, UnqScl)))
c(unq_vec(UnqVec), unq_arr(UnqDtf), unq_arr(c(UnqVec, UnqVec)))
c(unq_vls(UnqVls), unq_arr(UnqVec), unq_arr(c(UnqVls, UnqVls)))

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