I am trying to calculate a partial correlation between 6 (observed and modelled data) variables in a single NetCDF using ppcor package in r, but not successful yet, this is what