export_dataset {eHDPrep}R Documentation

Export data to delimited file

Description

Save dataset in .csv or .tsv format. A wrapper function for readr's write_csv and write_tsv.

Usage

export_dataset(x, file, format = "csv", ...)

Arguments

x

A data frame or tibble to write to disk.

file

File or connection to write to.

format

Character constant. "csv" (default) or "tsv"

...

parameters to pass to write_csv or write_tsv.

Value

x saved to file in selected format

See Also

write_csv and write_tsv

Other import to/export from 'R' functions: import_dataset()

Examples

data(example_data)
tmp = tempfile(fileext = ".csv")
export_dataset(example_data, tmp)

[Package eHDPrep version 1.3.2 Index]