
Add Data to User Data
bind_new_data.Rd
This function takes a named list and appends its values as a new column to a dataframe. The name of the named list is matched with the dataframe's column names.
Examples
df <- data.frame(Name = c("John", "Doe"), Age = c(25, 30))
new_data <- list(Designation = "Manager")
df <- bind_new_data(df, new_data)