Learn R Programming

matlab2r (version 1.5.0)

disp: Display the value of a variable

Description

disp(X) displays the value of variable X without printing the variable name. This is a wrapper around base::cat() that includes a breakline in the end.

Usage

disp(X)

Value

The value of X

Arguments

X

variable

Author

Waldir Leoncio

Examples

Run this code
A <- c(15, 150)
S <- 'Hello World.'
disp(A)
disp(S)

Run the code above in your browser using DataLab