Learn R Programming

matlab2r (version 1.5.0)

inputdlg: Gather user input

Description

Replicates the functionality of the homonymous function in Matlab (sans dialog box)

Usage

inputdlg(prompt, dims = 1, definput = NULL)

Value

A user prompt

Arguments

prompt

Text field with user instructions

dims

number of dimensions in the answwers

definput

default value of the input

Examples

Run this code
if (FALSE) {
 name <- inputdlg("Type your name")
 paste("Hello,", name)
}

Run the code above in your browser using DataLab