daves
daves

Reputation: 1

Hiding NA's when printing a dataframe in apa_table (papaja)

I am trying to print a table with apa_table (papaja) using options(knitr.kable.NA = ""). Whatever I try the NAs are still printed.

I tried with kable which worked just fine. But I need to use apa_Table. Is there a workaround or any idea why it doesn't work?

Sample code in my header:

    options(knitr.kable.NA = '')

Upvotes: 0

Views: 92

Answers (1)

Marius Barth
Marius Barth

Reputation: 646

papaja has its own option papaja.na_string to specify which character is to be printed if NAs occur.

For instance, you may specify

options(papaja.na_string = "")

to suppress the printing of NAs in tables (but also in text).

Upvotes: 2

Related Questions