R/disp.R

Defines functions disp

Documented in disp

#' @title Display the value of a variable
#' @description \code{disp(X)} displays the value of variable \code{X}
#' without printing the variable name. This is a wrapper around `base::cat()`
#' that includes a breakline in the end.
#' @param X variable
#' @return The value of \code{X}
#' @author Waldir Leoncio
#' @export
#' @examples
#' A <- c(15, 150)
#' S <- 'Hello World.'
#' disp(A)
#' disp(S)
disp <- function(X) cat(X, "\n")

Try the matlab2r package in your browser

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

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.