Learn R Programming

causalDisco (version 0.9.5)

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

Description

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

Usage

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

Value

Names of columns in x that match the prefix

Arguments

x

A data.frame

prefix

Prefix to match

sep

Separator, default "_"