shift_column | R Documentation |
Port of shift.column()
from Jared Lander's useful package
with a few minor changes.
shift_column(
data,
columns,
new_names = sprintf("%s.Shifted", columns),
len = 1L,
up = TRUE
)
data |
data |
columns |
columns to shift over |
new_names |
New name of shifted columns, Default: sprintf("%s.Shifted", columns) |
len |
length of rows to shift, Default: 1 |
up |
shift rows up (TRUE) or down (FALSE), Default: TRUE |
data.frame with shifted columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.