Hi@akhtar,
You can add new columns to a Dataframe using the $ and assignment <- operators. To do this, just use the df$name notation and assign a new vector of data to it. You can see the below-given example.
survey <- data.frame("index" = c(1, 2, 3, 4, 5), "age" = c(24, 25, 42, 56, 22))
survey$sex <- c("m", "m", "f", "f", "m")