Hello folks. I need to know if what I want to do is possible or not.
I have this dataset which contains 4 columns: Date (dd/mm/yy), tmax, tmin, and location (temperatures in different dates and places)
I'm going to try to make it easy to understand and show the important things from my dataset.
This is the head of my dataset:
FECHA = date
NOMBRE = name (of location)
> head(SMN)
# A tibble: 6 × 4
FECHA TMAX TMIN NOMBRE
<chr> <dbl> <dbl> <chr>
1 30/9/2022 18.6 12.4 AEROPARQUE AERO
2 30/9/2022 20.6 0.6 AZUL AERO
3 30/9/2022 24 7.1 BAHIA BLANCA AERO
4 30/9/2022 16.2 0.2 BARILOCHE AERO
5 30/9/2022 -10.9 -17.1 BASE BELGRANO II
6 30/9/2022 1.6 -1.4 BASE CARLINI (EX J…
What I want to do is merge the TMAX and TMIN into 1 column, or put them together into 1 variable so I can replicate a tutorial that looks like this:
It's a plot from a Riffomonas Project tutorial that shows:
X = YEAR (my dataset goes from 2021 to 2022),
Y = temperatures below and above 0 degrees in Celsius
I've tried merging the columns on Excel and Sheets from Google, but the results I get are either the double of rows in my dataset (the date goes missing in those rows), or the columns merged and separated like this:
18.6 - 12.4
and I don't think that works...
Thank you for reading this and thank you to everyone on this R Community for always being so kind and helpful.