I have two raster datasets. Dataset 1 is coarser (0.5 resolution) than dataset 2 (0.083 resolution). I need to harmonise them, and bring dataset 1 to dataset 2 (as dataset 1 is coarser). I need to do this using the disagg command, using the method "near".
The command I tried is:
harmonised_data <- disagg(dataset1, dataset2, method="near", filename="merged_data"). I get the following error:
# Error: not compatible with requested type: [type=s4, target=double].
If someone has a solution, would be great, thank you!