Looking at another question, I was wondering if there is a way to set a whole row of a tabular to math mode (without repeating $...$ for every cell) or a whole row of an array to text mode (without repeating \text{...} for every cell).
In Format whole row of table as bold this setting is done for a bold/italic/any-other-switch rows but can it be done also when the cell content should be the argument of a macro or the body of an environment?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
For example, how to set, once for all, the second row to text here:
\[
\begin{array}{*{14}{c}}
\dfrac{17}{91} & \dfrac{78}{85} & \dfrac{19}{51} & \dfrac{23}{38} & \dfrac{29}{33} & & & & & & & & & \dfrac{55}{1} \\[10pt]
\text{A} & \text{B} & \text{C} & \text{D} & \text{E} & \text{F} & \text{G} & \text{H} & \text{I} & \text{J} & \text{K} & \text{L} & \text{M} & \text{N} \\
\end{array}
\]
Or the first row to math here:
\begin{center}
\begin{tabular}{*{14}{c}}
$\dfrac{17}{91}$ & $\dfrac{78}{85}$ & $\dfrac{19}{51}$ & $\dfrac{23}{38}$ & $\dfrac{29}{33}$ & & & & & & & & & $\dfrac{55}{1}$ \\[10pt]
A & B & C & D & E & F & G & H & I & J & K & L & M & N \\
\end{tabular}
\end{center}
\end{document}


\rowstylethat takes the cell contents as an argument – Werner Dec 14 '17 at 23:33