I am trying to make descriptive statistics table using the basicStats function from fBasics library. Code is as follows.
sum_desc_stat=basicStats(sum_stat)
sum_desc_stat
write_xlsx(sum_desc_stat,'C:/Users/sum_desc_stat.xlsx')
If I run this in R, it shows me the names of the rows like Nobs, Mean, SD, etc. However, if I save that as Excel file, I can't see any of the rownames.
Can anyone help me how to display the rownames in Excel file as well?