I have been always wondering if there were an optimal way to perform this task in papers. So for example, in my field it is normal to present an output table from R (like linear regression) showing the estimated Betas, Variances... Normally, I refer to the raw numbers several times in the paper, for example, saying that the estimated Beta was equal to 0.2. It is unconvenient to be writting those numbers all the time, and even more annoying than that, is when I update the table with different estimates due to a small correction. So I have to be looking along all the pages where I wrote those numbers, and change them manually... I am sure there is an optimal way to do that, like for example, \ref{tab:output}[row=1,column=3] would show the content of the row 1, column 3 on that table.
Moreover, I want to know if is it possible, for example, I would like to show in the paper exp(\ref{tab:output}[row=1,column=3]), it will automatically calculate and display the exponential of this referenced number.
Thanks


<<>>=line, and optionally a label and/or a few options likeechoandresults, and end with@, or put some short R code in a\Sexpr{}and even more simple in R markdown. Reference a cell table typed manually in LaTeX in not too difficult, but you are still dependent of manual editing outputs, whereas knitr will update every table, figure and in text data editing only the source data (that could be in external files). – Fran May 28 '22 at 15:31