Question: # check whether function ` counts ( ) ` exists # and whether counts ( x ) returns a list of length 2 ( for
# check whether function counts exists
# and whether countsx returns a list of length for the input x :
x :
if testthatdesc"Sorry, functions counts was not created correctly", code
expectequalisfunctioncounts TRUE
TRUE stopSorry functions counts was not created correctly"
if testthatdesc code
expectequallengthcountsx
TRUE stopSorry for x: length of the returned list is not
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
