Message Boards Message Boards

3
|
6941 Views
|
2 Replies
|
10 Total Likes
View groups...
Share
Share this post:

Dataset - View All Elements

Posted 10 years ago

I have a dataset that contains about 40 elements. My notebook only shows about 16, then places a vertical ellipsis at the bottom, like this...

enter image description here

How do I expand this to see the whole dataset?

I know this is an incredibly dumb question, but I cannot seem to find anywhere in the documentation that tells me.

Thanks in advance.

POSTED BY: Brad Varey
2 Replies

p.s. It was not a dumb question.

POSTED BY: Bruce Miller

It is not in the documentation (therefore unsupported and subject to change). The variable $Dataset`\$ElisionThreshold$ does what you want. The attached notebook has examples.

PLEASE NOTE: $Dataset`\$ElisionThreshold$ was added in Mathematica 10.0.2.

Quick example: with the default value

In[1]:= Dataset`$ElisionThreshold
Out[1]= 64

In[2]:= ExampleData[{"Dataset", "Titanic"}]

16 lines are printed. Lowering the value to 10 reduces the number of lines to three.

In[3]:= Dataset`$ElisionThreshold = 10;

In[4]:= ExampleData[{"Dataset", "Titanic"}]

enter image description here

Setting a higher number prints more rows. 144 would probably work for your example. It appears to set the number of elements included in the output.

Attachments:
POSTED BY: Bruce Miller
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract