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

View source: R/util.R

mvcID.newR Documentation

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)

Arguments

n

Length of the serial number.

Value

A character scalar representing the created ID.

Examples

## Not run: 
## Private functions involved.

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

## End(Not run)


MAnorm2 documentation built on Oct. 29, 2022, 1:12 a.m.