Learn R Programming

swirl (version 2.2.6)

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

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

Examples

Run this code
# Test that the user has entered an expression using sd()
#
expr_uses_func('sd')

Run the code above in your browser using DataLab