2017-11-07 10 views
0

私はセルの値として「*」を使用してテーブルを作成しようとしています:knitr KABLEと「*」

--- 
title: "Untitled" 
author: "James Durant" 
date: "November 7, 2017" 
output: pdf_document 
--- 

```{r arthmatic, echo=FALSE} 
library(knitr) 
dfx <- data.frame(
    Operator = c("+", "-", "*", "/", "^", "**", "%%", "%/%"), 
    Operation = c("addition", "subtraction", "multiplication", 
       "division", "exponentiation", "exponentiation", 
       "modulus", "integer division") 
) 
kable(dfx, escape = FALSE) 
``` 

しかし、*および**テーブルには表示されません。 enter image description here

答えて

3

ちょうどそう\\text{*}または\\textasteriskcentered

+0

と各*を交換してください...ありがとうデビッド! –

関連する問題