# Using $ notation chapters = c(76,86) df$chapters <- chapters df # Output # id pages name chapters #1 11 32 spark 76 #2 22 45 python 86
# Using $ notation chapters = c(76,86) df$chapters <- chapters df # Output # id pages name chapters #1 11 32 spark 76 #2 22 45 python 86