Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have an object of the form


What function do I need to apply to it to get the Grid[...,...] part only?

share|improve this question

closed as off-topic by Öskå, Kuba, m_goldberg, Oleksandr R., b.gatessucks Jun 18 '14 at 20:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Öskå, Kuba, m_goldberg, Oleksandr R., b.gatessucks
If this question can be reworded to fit the rules in the help center, please edit the question.

probably First. –  Kuba Jun 18 '14 at 18:50

1 Answer 1

(List@@Style[Grid[{{x, y}}], Red,Bold])[[1]]


First@Style[Grid[{{x, y}}], Red,Bold]
share|improve this answer
In your first example, it is not necessary to Apply List since Part will act on any expression not just List -- as demonstrated with your second example since "First[expr] is equivalent to expr[[1]]" –  Bob Hanlon Jun 18 '14 at 19:37
@Bob Hanlon Yes you are right. Thanks. –  Algohi Jun 18 '14 at 19:44
Didn't work for me. I try to manipulate the result of the LinearModelFit and pass from the model["ParameterTable"] to the parameters to export it to an external file. a First@model["ParameterTable"] still gives the same result. It seems that the only way of getting the data is using model["ParameterTableEntries"] and then formatting it accordingly. –  Andrei Kucharavy Jun 18 '14 at 20:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.