I have a vector that I want to turn into a single row dataframe, this code works:
vec <- c("a","b","c","d","e")
df<- as.data.frame(t(as.data.frame(vec)))
but is so clunky, does anyone have a more elegant (and preferably less computationally expensive) solution