Is there a quick way (part of the tidyverse API perhaps) to turn a row into column names for a data.frame or tibble, somewhat similar
tidyverse
data.frame
tibble
Well, you can simply: colnames(df) <- as.character(df[1, ])
colnames(df) <- as.character(df[1, ])
And if you want to remove this first row: df <- df[-1,]
df <- df[-1,]