Learn R Programming

animate (version 0.3.9.4)

new_id: A utility function for generating IDs

Description

A utility function for generating IDs

Usage

new_id(x, prefix = "ID", sep = "-")

Arguments

x

The data that require IDs.

prefix

A character string; the prefix to be added to each ID.

sep

A character string; the separator to be added between the prefix and an ID.

Examples

Run this code
new_id(x = runif(10), prefix = "points")

Run the code above in your browser using DataLab