tempname: Create unique names within a list, a data.frame, or an...

View source: R/tempname.R

tempnameR Documentation

Create unique names within a list, a data.frame, or an environment

Description

Create unique names within a list, a data.frame, or an environment

Usage

tempname(where = globalenv(), n = 1, prefix = ".temp", inherits = TRUE)

Arguments

where

A chracter vector, list or an environment

n

An integar that specifies length of the output

prefix

A character vector that specifies prefix for new name

inherits

Should the name unique also in the enclosing frames of the environment?

Examples

tempname(c("temp1", "temp3"), 4)
tempname(globalenv())
tempname(data.frame(temp = 1), n = 3)

statar documentation built on Aug. 19, 2023, 5:09 p.m.