I want to do the following, changing tupple-style rows (without header) of data into a table with headers, with Tidyverse. The new command gather apparently can handle this.
How can I gather the wide table into a straight table or with some other modern Tidyverse tools?
library(tidyverse)
INLINE_LOAD ="Car,Merse,Speed,10,Other,ot
Car,Ferra,Speed,20,Other,ot2
Car,Volve,Speed,30,Other,ot3
Car,Miiss,Speed,40,Other,ot4"
Wanted Output
Car,Speed,Other
Merse,10,ot
Ferra,20,ot2
Volve,30,ot3
Miiss,40,ot4