htmlTable producing row numbers

I’m putting a table into an RMarkdown presentation and it is producing erroneous row numbers in the output I’ve got this:

library(htmlTable)

d <- data.frame(
    x=c('1','2','3'),
    y=c('A','B','C')
)

htmlTable(d)

Here's a picture of the output

How do I remove these?

>Solution :

Set rnames equals to FALSE.

---
title: "htmlTable"
output: html_document
---


```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```


```{r}
library(htmlTable)

d <- data.frame(
    x=c('1','2','3'),
    y=c('A','B','C')
)

htmlTable(d, rnames = FALSE)
```


Leave a Reply