Learn R Programming

StratigrapheR (version 1.3.1)

pkgfind: Find a specific pattern in the code of functions in a package

Description

This function names all the functions in a package that contain a specific character pattern, typically the name of a function.

Usage

pkgfind(pkg, pattern)

Value

a vector of the names of the functions in which the pattern is identified

Arguments

pkg

a character string of the package to search in

pattern

the pattern to search in the codes of the functions in the package

Examples

Run this code
pkgfind("StratigrapheR", "every_nth")

Run the code above in your browser using DataLab