ropensci / writexl

Portable, light-weight data frame to xlsx exporter for R
https://docs.ropensci.org/writexl
Other
210 stars 17 forks source link

worksheet name #18

Closed igordot closed 6 years ago

igordot commented 6 years ago

Is it possible to specify the worksheet name with write_xlsx? Currently, it just names the sheet as "Sheet1".

jeroen commented 6 years ago

Yes put it into a named list: write_xlsx(list(first = iris, second = mtcars))

igordot commented 6 years ago

Oh wow! That was easy! Thanks!

StephieLaPugh commented 5 years ago

FYI, in case anyone is as dumb as me, substitute the names you want for "first" "second" "third", etc. I made five tabs labeled "first", "second", "third"... Derp

I wish this was explained in the documentation.