title: How to export "descriptions of variables" below variable names from R to csv or excel format?
body: <p><a href="https://i.stack.imgur.com/crJm9.png" rel="nofollow noreferrer">Sample view</a>I imported a .dta file into R using foreign package and now I want to export the same file into a csv or excel format. The table has 23415 ops. and  5588 variables. Each of these variables have a description beneath them in the same row as I view it in R.</p>
  
  <p>When I export the data frame into a csv or excel format, the variables are well exported but the descriptions of the variables are missing.</p>
  
  <p>I want the table as it is in excel which would show the data set with the column variables and the descriptions as the first row, as I view it in R Studio. Can anyone advise as I've tried other solutions but it is not working. </p>
  
  <p>Thanks for your help.</p>