R package that estimates dimention of datasets