getvar.character: Get variables with a specific prefix (character method)

getvar.characterR Documentation

Get variables with a specific prefix (character method)

Description

Get variables with a specific prefix (character method)

Usage

## S3 method for class 'character'
getvar(x, prefix, sep = "_")

Arguments

x

Character vector

prefix

Prefix to match

sep

Separator, default "_"

Value

Subset of x that matches the prefix


causalDisco documentation built on Jan. 20, 2026, 5:09 p.m.