extract_all_names: Extract all names

View source: R/extract.R

extract_all_namesR Documentation

Extract all names

Description

Extracts all parameter and attribute names from the utility function. This is a wrapper around str_extract_all with a specified boundary. The function also calls remove_all_brackets to ensure that if a word is used inside a square bracket, e.g. seq, it is not extracted.

Usage

extract_all_names(string, simplify = FALSE)

Arguments

string

A character string

simplify

If TRUE return as a vector. Default is FALSE.

Details

Note that we are not matching spaces nor the interaction operator I(). This is to avoid I being identified as its own (unspecified) attribute.

Value

A list or vector with all names


spdesign documentation built on Oct. 18, 2024, 5:07 p.m.