# NOT RUN {
# add_column ---------------------------------
df <- tibble(x = 1:3, y = 3:1)
add_column(df, z = -1:1, w = 0)
# You can't overwrite existing columns
# }
# NOT RUN {
add_column(df, x = 4:6)
# }
# NOT RUN {
# You can't create new observations
# }
# NOT RUN {
add_column(df, z = 1:5)
# }
Run the code above in your browser using DataLab