Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: report the structure of more complex Objects #33

Closed
kkoerner opened this issue Nov 23, 2016 · 3 comments
Closed

Feature request: report the structure of more complex Objects #33

kkoerner opened this issue Nov 23, 2016 · 3 comments

Comments

@kkoerner
Copy link

@kkoerner kkoerner commented Nov 23, 2016

At first: I like your package very much, it works perfect for data.frames.

But I am looking for a functionality to get quick information on more complex Data, as structured lists or multidimensional arrays. What are the names, where are the tables etc.
Or maybe, to report the content of a *.RData file (Data, functions, ...)?

Is it possible to include this in your Package?

@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Nov 23, 2016

Thank you for your interests, and I am extremely happy to do so.

However, do you mind giving me some concrete examples? For instance, what type of input and output are you expecting? It will be great if you could share some real data, so that I can implement it. If you have privacy concerns to share your data here, feel free to Email me at boxuancui@gmail.com.

Thanks!

@kkoerner
Copy link
Author

@kkoerner kkoerner commented Nov 24, 2016

Hi, thank you for your quick response!

Assume, you have a colleague sharing his scientific data with you, and the documentation has its issues. You want to use the data in your scripts, but you don't know exactly how the data structure is and how to access the data you're interested in.

If I got a *.RData or if I have an object, I would like to know:

  • wich elements are included (lists, data frames, functions etc.)
  • in each case - how big is the data (memory)?
  • in case of lists: wich elements are included, and what type are they (list, data.frame, single values etc.)
  • recursively analyse these (possibly hierarchical) lists

Pretty much of what I'd like appears in the 'Environment' tab of 'RSudio' or if I use str() or ls.str() with a list. More nicely formatted and condensed for large sub-elements or repititive structures it would be perfect in an html document..
Ill append an example:

example.zip

Sincerely

kkoerner

@boxuancui boxuancui self-assigned this Nov 28, 2016
@boxuancui boxuancui modified the milestone: 0.4.0 Dec 12, 2016
boxuancui added a commit that referenced this issue Dec 19, 2016
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 19, 2016

Please install the latest develop version: devtools::install_github("boxuancui/DataExplorer", ref="develop"), and refer to ?PlotStr for this issue. You might want to do PlotStr(case0, max_level = 2) or PlotStr(case0[[1]]) to reduce the output size. Let me know if you have any comments/questions.

@boxuancui boxuancui closed this Dec 19, 2016
boxuancui added a commit that referenced this issue Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.