write_csv2: A function saving European-style CSV-files

View source: R/import_config.R

write_csv2R Documentation

A function saving European-style CSV-files

Description

The write_csv2 function that is missing from the readr package The first time it is used it will create a column specification file allows you to create and or read a file which you can use to control a data file import

Usage

write_csv2(x, path, na = "NA", append = FALSE, col_names = !append)

Arguments

x

A data frame to write to disk

path

Path or connection to write to.

na

String used for missing values. Defaults to NA. Missing values will never be quoted; strings with the same value as na will always be quoted.

append

If 'FALSE', will overwrite existing file. If 'TRUE', will append to existing file. In both cases, if file does not exist a new file is created.

col_names

Write columns names at the top of the file?

Examples

write_csv2(tbl_companies_uk, path="~/uk_companies_columns.csv")

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.