Learn R Programming

recipes (version 0.1.0)

names0: Sequences of Names with Padded Zeros

Description

This function creates a series of num names with a common prefix. The names are numbered with leading zeros (e.g. prefix01-prefix10 instead of prefix1-prefix10).

Usage

names0(num, prefix = "x")

Arguments

num

A single integer for how many elements are created.

prefix

A character string that will start each name. .

Value

A character string of length num.