Is there an easy way to take a column output from a TableForm command, like this:
6.3121375196805859436
6.9003005747830988641
8.9768182443850834342
8.9138378561826490430
7.9892637649923361149
5.7310834764460301485
7.8127176986072821866
7.2290808062999679496
7.4923081278967455513
And convert it back into a "Table" or "List" or "Vector", i.e.,
{6.3121375196805859436,6.9003005747830988641,8.9768182443850834342,8.9138378561826490430,7.9892637649923361149,5.7310834764460301485,7.8127176986072821866,7.2290808062999679496,7.4923081278967455513}
It is not so hard to do manually if there are only a dozen items, but when there are hundreds, it gets a bit tedious. What I've been doing is copy as "plain text", paste into Microsoft Word, replace "paragraph" marks with commas (Find ^p; Replace ,), put in the curly brackets, and copy it back into Mathematica. Surely there is an easier way?
Well, here is one way, and recall that I want to just translate within Mathematica itself:
StringReplace["{0.27053645617075607328
0.29665173751384943109
0.25127005359909123280
0.23465443792124858652
0.25447200323727824111
0.26802978565269905254
0.26622025533442188507
0.31359242691527905846
0.26810428054117807246
0.29408129579900499019
0.29001875144558125364
0.24823119448471783028
0.27626029400322289905
0.27347835282168678727
0.26924305884480351606
0.25995335230286428315
0.25585822835794553252
0.26573081058995874804
0.28819488915098074127
0.27186805052334818319
0.31654336155657666993}", "\n" -> ","]
That is, copy it as text, and paste it into the command
StringReplace["{paste here}", "\n" -> ","]
The output is then formatted correctly. I would have thought it would be a builtin command, and well, sort of, it is. Anyone else have an answer, please?
but when there are hundreds, it gets a bit tedious. What I've been doing is copy as "plain text", paste into Microsoft Word
you are making things so hard for yourself. Simply use Latex. Mathematica has great Latex export. You can export the data from your table in Mathematica to Latex using TeXForm and include the output back to your latex document. Word is not the right tool for engineering, science and math reports. I use Latex for everything. $\endgroup$