SWS-Methodology / faoswsImputation

Repository for storing code and associated files for the imputation package. This package implements flexible data imputation with the use of ensembles of models.
0 stars 0 forks source link

Error when a single country country contains no data #9

Closed mkao006 closed 8 years ago

mkao006 commented 8 years ago

When a single country for a single element contains no value, it is sufficient to fail the algorithm as the sampleEqually fails.

This is also a result of sub-setting the data.table after the by arguement which should be avoided. The missing values should be handled in the function rather then sub-setting.

mkao006 commented 8 years ago

Fixed on branch with commit 1c48170f6142a053ddc54433204e985b56e5482c