Hello,
I have a problem: I want to know how to, in the inline code, refer to what value a variable in a table has? The selection needs to be based on the variable name. See below example:
In the current text I want to write something like `r Town1$population`
and then get the value (in this case 45) returned in the text. The important thing is that it is the variable name that causes me to get the number (in this case, Town1).
Town Population
Town1 45
Town2 43
Town3 67