I have two df which look like:
>df1
name time date
Dan 01:00 Apr-17
Ann 02:00 Apr-17
>df2
name time
Joe 03:00
Bob 04:00
>out
name time
Dan 01:00
Ann 02:00
Joe 03:00
I want to combine one row from df1 into df2 WITHOUT creating new columns. Furthermore the data under names
are the rownames and should not be overwritten. My actual dataframes have ~800 and 99 columns respectively.
Ive tried following answers in previous similar questions but I cannot get my desired outcome, including rbind, bind_rows, rbind.fill. These work to some degree but always remove my rownames
rbind.fill(df1, df2[colnames(df2) %in% colnames(df2)])
rbind(df2, df1[1,names(df1)])
bind_rows(df1[1,], df2)