Learn R Programming

easyr (version 0.5-11)

namesx: Names Like

Description

Get column names that match a pattern. Author: Scott Sobel. Tech review: Bryce Chamberlain.

Usage

namesx(df, char, fixed = TRUE, ignore.case = TRUE)

Value

Vector of matched names.

Arguments

df

Object with names you'd like to search.

char

Regex chracter to match to columns.

fixed

Match as a string, not a regular expression.

ignore.case

Ignore case in matches.

Examples

Run this code
namesx( iris,'len' )
namesx( iris,'Len' )

Run the code above in your browser using DataLab