I have two tibbles: the first one with more than one row and second one, with exactly one row.
I want to col bind them, and, for this purpose, I want the second one to have the same number of rows as the first.
I can do this operation with this trick:
for (i in colnames(df2)) {
df1[[i]] <- df2[1,i]
}
However, this sounds like a workaround to me. Is there a "tidier" way of doing this (I mean, with tidyverse)?
cbind(df1,df2)
– HubertL