Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expr_uses_func

Test that a particular function has been used.


Description

Returns TRUE if the e$expr uses the function whose name is given as the first argument.

Usage

expr_uses_func(func)

Arguments

func

name of the function expected to be used

Value

TRUE or FALSE

See Also

Examples

## Not run: 
# Test that the user has entered an expression using sd()
#
expr_uses_func('sd')

## End(Not run)

swirl

Learn R, in R

v2.4.5
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Bill Bauer [aut], Gina Grdina [aut], Filip Schouwenaars [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.