Learn R Programming

NCmisc (version 1.1.5)

wait: Wait for a period of time.

Description

Waits a number of hours minutes or seconds (doing nothing). Note that this 'waiting' will use 100

Usage

wait(dur, unit = "s", silent = TRUE)

Arguments

dur

waiting time

unit

time units h/m/s, seconds are the default

silent

print text showing that waiting is in progress

Value

no return value

Examples

Run this code
# NOT RUN {
wait(.25,silent=FALSE) # wait 0.25 seconds
wait(0.005, "m")
wait(0.0001, "Hours", silent=FALSE)
# }

Run the code above in your browser using DataLab