R/utils-bind_cols_overwrite.R

Defines functions bind_cols_overwrite

# Utility to bind columnwise while overwriting any existing columns
bind_cols_overwrite <- function(df_old, df_new) {
    df_old[,colnames(df_new)] <- df_new
    return(df_old)
}

Try the timetk package in your browser

Any scripts or data that you put into this service are public.

timetk documentation built on Nov. 2, 2023, 6:18 p.m.