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

getvar.data.frameR Documentation

Get variables with a specific prefix (data.frame method)

Description

Get variables with a specific prefix (data.frame method)

Usage

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

Arguments

x

A data.frame

prefix

Prefix to match

sep

Separator, default "_"

Value

Names of columns in x that match the prefix


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