I am using Pander to get my tables in R markdown, and I would like to add row names to my tables, which are not there by default. here is my script:
age.frequency.table <- xtabs(~age, data=iceland)
pander(age.frequency.table)
Here is a screenshot of the table I get on R markdown
I would like to have the row names 'age' and 'frequency'. Any tips would be greatly appreciated! I'm very new to R/coding so apologies if this is an obvious question.