Question: Make sure your R code for part C passes all test provided by: ## check whether function ptypelerr is defined if ( test _ that
Make sure your code for part passes all test provided by:
## check whether function ptypelerr is defined
iftestthatdesc code
expectequalexistsptypellerr mode"function" TRUE
TRUE stopFunction ptypellerr not created!"
## check whether output is numeric or double
if testthatdesc code
expectequal isnumericptypellerr TRUE
TRUE stopthe output is not numericdouble
And
## check whether the rd th and th digit of ptypellerr are respectively
if testthatdesc code
expectequal floor ptypeller. TRUE
TRUE stopSorry wrong answer"
## check whether the th and th digit of ptypellerr are respectively
if testthatdesc code
expectequal floor ptypellerr :
TRUE stopSorry wrong answer"
## check whether ptypellerr
if testthatdesc code
expectequal ptypellerr TRUE
TRUE stopSorry wrong answer"
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
