Home > Software engineering >  How to assign a sheet name when exporting from R
How to assign a sheet name when exporting from R

Time:08-22

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)

CodePudding user response:

Parameter is called sheetName= not sheetname=

  •  Tags:  
  • r
  • Related