SAS (Base SAS)+
proc export data=males outfile="path\\males_export.xlsx" replace;
run;- PROC EXPORT writes the SAS dataset to an Excel file.
proc export data=males outfile="path\\males_export.xlsx" replace;
run;library(writexl)
write_xlsx(males, "path/males_writexlsx.xlsx")
write_xlsx(list(class = class, Males = males), "path/multisheets_writexlsx.xlsx")write_xlsx() writes a data frame to an .xlsx file.