Make NA values in table just blank cells when using cell_spec in kableExtra [duplicate]
问题 This question already has answers here : Hiding NA's when printing a dataframe in knitr (2 answers) Closed 7 months ago . Following on from a previous question, I am using the cell_spec function from kableExtra to change the background color of cells within a table. How can you remove the NA text and color the background white for the NA cells so that an NA appears just as a blank cell? Below is my example table with the NA cells. In real life there is a dynamic number of columns with various