powered by
getRelativeGrade is an operator for grade values.
getRelativeGrade
getRelativeGrade(current_grade, initial_grade)
a string containing the current grade in the form G?, where ? is a number.
G?
?
a string containing the initial grade in the form G?, where ? is a number.
the grade difference of the current grade relative to the initial grade.
# NOT RUN { getRelativeGrade("G4", "G3") ## 1 getRelativeGrade("G5", "G3") ## 2 getRelativeGrade("G2", "G3") ## -1 # }
Run the code above in your browser using DataLab