R package for performing PCA with applications to missing value imputation