Learn R Programming

survout (version 0.1.0)

p2excel: Export the A Single Dataframe to An Excel Sheet

Description

The function saves a dataframe into an excel sheet with a predetermined format.

Usage

p2excel(
  tabname = "Default",
  datastable,
  tablename = "Default",
  filename = "Default.xlsx"
)

Value

a spreadsheet containing an exported tables

Arguments

tabname

a string with the tab's name.

datastable

the dataframe that will be exported to Excel.

tablename

a string containing the table label and title, which will appear as the first row

filename

the name of the spreadsheet