I am assuming you are working with geographical data? If so, have a look at the raster package. It is the de facto standard for working with geographical fields and will likely be useful in the rest of your workflow too.
Then it should be fairly easy to produce a RasterStack from your ncdf fields on which you can use raster::calc() to produce a RasterLayer of pixel averages. See help(calc)