Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to assign a sheet name when exporting from R

I am using the below code to export a data frame from RStudio to excel file. I want to define the sheet name while exporting however despite of writing the correct code the exported file contains the default sheet name "Sheet1". Seeking help where I am going wrong? I am using "xlsx" package.

write.xlsx(SLIDE6FVOLT, "C:\\Users\\I0510906\\Desktop\\RAuto\\SLIDE6FVOLT.xlsx", 
    sheetname = "SLIDE6FVOLT", colnames = TRUE, rownames = FALSE)

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Parameter is called sheetName= not sheetname=

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading