I have a dataframe in R (see extract below).
I need to split the 'Weather variable' column into columns for each variable, and although I've tried 'separate', and looked at Tidyverse packages I can't work out the syntax.
Any hints?
Date Buffer LST Weather variable Value
1 01/12/2010 900 -0.85450387 Wind_trend 0.00
2 01/12/2010 900 -0.85450387 Temperature 11.00
3 01/12/2010 900 -0.85450387 Wind_direction 33.75
4 01/12/2010 900 -0.85450387 Pressure_trend 1.00
5 01/12/2010 900 -0.85450387 Humidity 24.50
6 01/12/2010 900 -0.85450387 Pressure 1024.00
7 01/12/2010 900 -0.85450387 Wind_speed 5.50