R/base-NullObject.R

Defines functions NullObject

#' @title Null Object Pattern
#' @description Model a domain concept using natural lingo of the domain
#'   experts, such as “Passenger”, “Address”, and “Money”.
#' @family base design patterns
#' @export
#' @examples
#' # See more examples at <https://tidylab.github.io/R6P/articles>
#'
#' colnames(NullObject())
#' nrow(NullObject())
NullObject <- function() tibble::tibble(given = NA_character_, family = NA_character_)[0, ]
tidylab/R6P documentation built on Dec. 23, 2024, 9:22 a.m.