R Package for dimensionality reduction