Trying to organise the cobe sea surface temperature data into columns that are shown here:
class : SpatRaster
dimensions : 180, 360, 2040 (nrow, ncol, nlyr)
resolution : 1, 1 (x, y)
extent : 0, 360, -90, 90 (xmin, xmax, ymin, ymax)
coord. ref. : lon/lat WGS 84
source : sst.mon.mean.nc
varname : sst (Monthly Means of Global Sea Surface Temperature)
names : sst_1, sst_2, sst_3, sst_4, sst_5, sst_6, ...
unit : degC, degC, degC, degC, degC, degC, ...
time : 1850-01-01 to 2019-12-01
I want to do this so i can extract certain locations and time periods to analyse ocean warming
However this is what happened when I turned it into a dataframe:
'data.frame': 43799 obs. of 2040 variables:
sst_1 : num -1.71 -1.71 -1.71 -1.71 -1.71 ...
sst_2 : num -1.69 -1.69 -1.69 -1.69 -1.69 ...
sst_3 : num -1.71 -1.71 -1.7 -1.7 -1.7 ...
sst_4 : num -1.74 -1.74 -1.74 -1.74 -1.74 ...
sst_5 : num -1.72 -1.72 -1.72 -1.72 -1.72 ...
sst_6 : num -1.74 -1.74 -1.74 -1.74 -1.74 ... etc
Any advice or help