cynkra / sdtools

tools to work with swissdata sets
1 stars 0 forks source link

print method for swissdata objects #4

Closed christophsax closed 5 years ago

christophsax commented 5 years ago

It would be useful to have a print method for swissdata object, print.swissdata. I think having something like the output of str(x) and head(x$data) could be useful.

Can you give it a try?

More important than the resulting function is the concept behind and the ease of use. When you do drop_dim, drop_level, etc, which kind of print output is most useful? We can tweak and adjust as we move along.

karoliskoncevicius commented 5 years ago

Implemented a print method in #8

Did not reuse the str() function, as it had a lot of dependencies (some copied, and some yet unresolved).

karoliskoncevicius commented 5 years ago

Reimplemented the str() function now, and calling it from within print()

christophsax commented 5 years ago

I thing that's pretty good for now. Let's collect feedback.