Rebase for indexing/modellin

rebase(x, cpp = FALSE)

Arguments

x

a vector to rebase to start from 0 or 1

cpp

use C++ index (starting from zero instead of one)