I have a table in R containing n values. I want to create a column B, which has the values of another column A, but moved them "up" 1 line:
Example:
A B
_ _
1 2
2 3
3 n
n n
I know that the first item of A will be deleted in column B and also I would like to duplicate the value n and move it to the last "empty" spot of B (which would otherwise be 0 because I moved all values "up")