2

Lets say I have a dataframe like this Input Table

I tried this

```{r, echo=FALSE, message=FALSE,   warning=F, results="axis"}
df<- read.csv("test.csv",header = T)
library(dplyr)
df<- df%>%
  dplyr::group_by(Month,Name)%>%
  dplyr::summarise(Count=n())

df$Type[duplicated(df$Type)] <- " "

df$Type <- sapply(df$Type, as.character)
df$Type[is.na(df$Type)] <- " "

library(xtable)
print(xtable(df),type="html")

```

I removed the duplicates but I want to merge the cells as in rowspan to display in html and knit like this .

Output Table

Sathish
  • 12,453
  • 3
  • 41
  • 59
ToniyaSundaram
  • 191
  • 3
  • 12
  • Some usable data would be useful to help us help you. [how to make a great R reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – GGamba Mar 23 '17 at 08:37

0 Answers0