Help with extracting NetCDF to Excel File

Hi friends,

I am new to to R language, and struggling with a small task. Your help would be much appreciated.

I have a temperature data that was downloaded from a Climate Model called CORDEX. It has three variables Longitude (rlon), Latitude (rlat) and Date (time), and stored in NetCDF format.

I wanted to extract the daily maximum temperature data (tasmax) with its three dimensions: Longitude (rlon), Latitude (rlat) and Date (time) into an Excel file. From two NetCDf files, two excel files.

I tried to use R-Code coped from Opera, but the dimensions are written differently as (lon) and (lat). They do not match my variable names (rlon) and (rlat) in the NetCDF files.

Any help, please?