I think this is a pretty straight-forward reshaping, although we are struggling. We have this dataframe:
structure(list(X1 = c("Title:", "Phone:", "Email:", "Previous College:"
), X2 = c("Head Coach, Year2", "123-456-7890", "name@email.com",
"The Best")), class = "data.frame", row.names = c(NA,
-4L))
X1 X2
1 Title: Head Coach, Year2
2 Phone: 123-456-7890
3 Email: name@email.com
4 Previous College: The Best
and we're trying to convert it into a 1-row dataframe like such:
data.frame(Title = 'Head Coach, Year2', Phone = '123-456-7890', Email = 'name@email.com', `Previous College` = 'The Best', stringsAsFactors = FALSE)
Title Phone Email Previous.College
1 Head Coach, Year2 123-456-7890 name@email.com The Best