Everybody knows that R is an inferior programming language, because vector
indices start from 1, whereas in real programming languages like C and Python,
array indexing begins from 0.
Sometimes this can be quite annoying if a problem—be it a math…