grambank / grambank-analysed

3 stars 0 forks source link

Fixes to PCA code. #76

Closed SimonGreenhill closed 2 years ago

SimonGreenhill commented 2 years ago

This PR:

  1. Fixes the rounding error in the PCA component summary due to premature rounding to two decimal places (The optimal number of components is 19 and they explain 50.364 % of the variation.)
  2. Removes a deprecation warning from melt
  3. Replaces data.table with read_tsv to match everywhere else.
  4. Simplifies the loading of the PCA, so I can calculate the components without need a full gdal stack installed.
  5. Fixes the error in the scree plot filename (no extension)
  6. Removes some unused code.

...and as a bonus, tidies up the whitespace in requirements.R