R package for efficiently managing data