I am using this package to for an intro data science class. In one exercise the students need to compute the entry-wise maximum of two columns of data. One correct way to do this is using pmax(), and a common beginner mistake is to use max() instead. In testing their solution, I would like to provide some feedback based on if they are calling max(). Is there a way to do this? It's sort of the negation of a check_function() or check_code() call.
I am using this package to for an intro data science class. In one exercise the students need to compute the entry-wise maximum of two columns of data. One correct way to do this is using
pmax()
, and a common beginner mistake is to usemax()
instead. In testing their solution, I would like to provide some feedback based on if they are callingmax()
. Is there a way to do this? It's sort of the negation of a check_function() or check_code() call.