R/base-NullObject.R

Defines functions NullObject

Documented in NullObject

#' @title Null Object Pattern
#'
#' @description Model a domain concept using natural lingo of the domain
#'   experts, such as "Passenger", "Address", and "Money".
#'
#' @details
#' ```{r child = "vignettes/details/NullObject.Rmd"}
#' ````
#'
#' @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,]

Try the R6P package in your browser

Any scripts or data that you put into this service are public.

R6P documentation built on Oct. 3, 2022, 1:05 a.m.