set_names: Set the Names in a 'regexr' Object

Description Usage Arguments Value See Also Examples

View source: R/set_names.R

Description

This is a convenience function that sets the names on a regexr object and returns the object. This function works the same as setNames but provides a naming which is consistent with set_regex and set_comments.

Usage

1
set_names(x, y)

Arguments

x

The regexr object.

y

The names to assign.

Value

Returns a regexr object.

See Also

setNames

Examples

1
2
3
minimal <- construct("a", "b", "c")
out <- set_names(minimal, 1:3)
names(out)

regexr documentation built on May 29, 2017, 5:57 p.m.