startz gave an excellent one line solution to finesse your first result to the desired outcome.
I will just show you for completeness, two other approaches.
The first is based on the original creation, so it does not create NA's, this is done by using a second counting variable (j).