excel

How to write a data frame to excel without row names in R?

Got a question today about how to write a data frame to Excel without rownames. Seasoned R vets probably don’t even blink at this, but it’s the type of thing that I think a lot of new users struggle to overcome. Anyhow, here are my quick and simple solutions: The easiest is to write this to a CSV file, which will open in excel. You can use the following code to do this: