Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write_ods

write data to ods file


Description

Function to write a single data.frame to an ods file.

Usage

write_ods(
  x,
  path,
  sheet = "Sheet1",
  append = FALSE,
  update = FALSE,
  row_names = FALSE,
  col_names = TRUE,
  verbose = FALSE,
  overwrite = NULL
)

Arguments

x

a data.frame

path

Path to the ods file to write

sheet

Name of the sheet

append

logical, TRUE indicates that x should be appended to the existing file (path) as a new sheet. If a sheet with the same sheet_name exists, an exception is thrown. See update.

update

logical, TRUE indicates that the sheet with sheet_name in the existing file (path) should be updated with the content of x. If a sheet with sheet_name does not exist, an exception is thrown.

row_names

logical, TRUE indicates that row names of x are to be included in the sheet

col_names

logical, TRUE indicates that column names of x are to be included in the sheet

verbose

logical, if messages should be displayed

overwrite

logical, depreciated.

Value

the value of path invisibly.

Author(s)

Thomas J. Leeper thosjleeper@gmail.com, John Foster john.x.foster@nab.com.au, Chung-hong Chan chainsawtiney@gmail.com


readODS

Read and Write ODS Files

v1.7.0
GPL-3
Authors
Gerrit-Jan Schutten, Chung-hong Chan, Thomas J. Leeper, John Foster, and other contributors
Initial release
2020-06-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.