Learn R Programming

MAnorm2 (version 1.2.2)

mvcID.new: Create a New Unique ID for a Mean-Variance Curve

Description

To achieve that different calls of mvcID.new generate distinct IDs, the function returns the current time via Sys.time, appended by a randomly generated serial number.

Usage

mvcID.new(n = 10)

Value

A character scalar representing the created ID.

Arguments

n

Length of the serial number.

Examples

Run this code
if (FALSE) {
## Private functions involved.

mvcID.new()
mvcID.new()
Sys.sleep(1.1)
mvcID.new()
}

Run the code above in your browser using DataLab