I have already created a table summary
tab[,2] <- paste0(tab[,2],"%")
tab[,2] <- replace(tab[,2],tab[,2]<0,"-")
now want to change if summary have 0 or 0.0 then it should replace by "-"
i have used tab[,2] <- replace(tab[,2],tab[,2]<0,"-")
but its not giving the required output