I have a variable named statistical value of life in millions of 2006 dollars
, and I'm trying to include the value in inline knitr code.
我有一个名为生命统计值的变量,数百万美元,我试图将值包含在内联编织器代码中。
`r `statistical value of life in millions of 2006 dollars` `
I can't figure out how to escape the backticks.
我无法弄清楚如何逃避反击。
2 个解决方案
#1
10
I think the easiest solution is to use another way of addressing the variable:
我认为最简单的解决方案是使用另一种方式来处理变量:
`r get('statistical value of life in millions of 2006 dollars')`
#2
0
Perhaps consider using a name without spaces in it (and a little shorter).
也许考虑使用一个没有空格的名称(并且稍微短一点)。
#1
10
I think the easiest solution is to use another way of addressing the variable:
我认为最简单的解决方案是使用另一种方式来处理变量:
`r get('statistical value of life in millions of 2006 dollars')`
#2
0
Perhaps consider using a name without spaces in it (and a little shorter).
也许考虑使用一个没有空格的名称(并且稍微短一点)。