##### Demonstration Script #2a ##### MATH322 ##### ##### An investigation into coverage ##### ### Preamble # Here is a function that returns TRUE/FALSE, # depending on whether the given value (x) is # between the other two (lo and up). # # This starts to illustrate how to write our # own functions in R. # isBetween <- function(x,lo,up) { ib = x>lo & x