tidyverse: data transformation, gather()
I am trying to transform a dataset: [1]: https://i.stack.imgur.com/09Ioo.png To something like this: [2]: https://i.stack.imgur.com/vKKu2.png How can I do this on R? I tried using gather() but somehow im not getting the results.. library(tidyverse) df_gather <- df %>% gather(key = "Day", "Sensor",2:5) View(df_gather) Thanks in advance for your help! >Solution : Because you did not… Read More tidyverse: data transformation, gather()