Learn R Programming

easyr (version 0.5-11)

strx: Structure with Like

Description

Runs str function but only for names matching a character value (regex). Author: Scott Sobel. Tech Review: Bryce Chamberlain.

Usage

strx(df, char, ignore.case = T)

Arguments

df

Object with names you'd like to search.

char

Regex (character value) to match.

ignore.case

(Optional) Ignore case when matching.

Examples

Run this code
strx(iris,'length')

Run the code above in your browser using DataLab