write_data: Write common file formats

Description Usage Arguments Note Author(s) Examples

Description

A simple wrapper for writing common data formats. The format is determined by the extension given in file. Flat files are written with readr, and the encoding is always UTF-8. For xlsx, the function uses to_sheet (which in turn uses openxlsx).

Usage

1

Arguments

x

The data to be written. (data.frame, list or survey).

file

Path.

Note

Use lapply to write a list of data to flat files (csv, txt etc).

Author(s)

Kristian D. Olsen

Examples

1
write_data(x, file = "test.xlsx")

itsdalmo/reporttool documentation built on May 18, 2019, 7:11 a.m.