sebastian-c / overflow

An R package to assist people answering R questions on Stack Overflow
14 stars 12 forks source link

added Truncate #23

Closed trinker closed 10 years ago

trinker commented 10 years ago

I have added a Truncate function (trunc and truncate are already base named functions). It may need to be cleaned up/renamed etc. It basically provides a truncated display of data.frames and matrices (and recursively in lists). It may not fit with the package though. If it doesn't my feelings will remain in tact.

I checked and it passes CRAN checks.

TR

sebastian-c commented 10 years ago

I can see a use for it, for example if someone submits a huge file and you want it to be summarised. Here's how I see it, for a help site like SO, good display of data is important. I think what you've got here gives a good summary of lists which is better than what would be found in the base packages. I'm making some minor spelling corrections, but I think I will add it.

sebastian-c commented 10 years ago

One note, though: in order to keep in with the theme of the package, I might rename it to sotrunc. This means that it is easily found with the other so functions and also solves the naming problem above.

trinker commented 10 years ago

Cool, glad it could be of use.