Switch from 0 based to 1 based indices in R