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

func_of_newvar_equals

Test the result of a computation applied to a specific (user-named) variable created in a previous question.


Description

Tests the result of a computation such as mean(newVar) applied to a specific variable created in a previous question and saved behind the scenes as e$newVar.

Usage

func_of_newvar_equals(correct_expression)

Arguments

correct_expression

expression expected to be applied

Value

TRUE or FALSE

See Also

Examples

## Not run: 
# Test if user has taken the mean of a variable created
# in an earlier question.
#
func_of_newvar_equals('mean(newVar)')

## 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.