I am new to R and I want to know how to write a code for my following question. I have excel file in the following format. 1. I want to create a time series from first 4 column, each and every column represent year, month, date, time(hours) 2. Plot the time series against 2 stations that I have (X991 and X5779) Note: first raw indicate what type of time seris (Temperature), second raw is height of the station, third row is X coordinate, fourth row is Y coordinate and fifth row is station name (X991, X5779), therfore i want to skip these rows and plot my time series
can anyone please help me with this
Temperature
YY MM DD HH 365 877
YY MM DD HH 50.9117 50.7314
YY MM DD HH 13.7087 13.7516
YY MM DD HH X991 X5779
2000 1 1 0 -9999 -4.3
2000 1 1 1 -9999 -4.3
2000 1 1 2 -9999 -4.1
2000 1 1 3 -9999 -4.1
2000 1 1 4 -9999 -4.4
2000 1 1 5 -9999 -4.2
2000 1 1 6 -9999 -4
2000 1 1 7 -9999 -3.9
2000 1 1 8 -9999 -3.8
2000 1 1 9 -9999 -3.7
2000 1 1 10 -9999 -3.5
2000 1 1 11 -9999 -3.1
2000 1 1 12 -9999 -2.7
2000 1 1 13 -9999 -2.5
2000 1 1 14 -9999 -2.4