Import and export with various data formats
Usage
read_data(file, ...)
write_data(data, file, ...)
Arguments
- file
A file path.
- ...
arguments passed to the appropriate function.
- data
A tibble.
Examples
# Read data
if (FALSE) {
tb <- read_data("data.xlsx")
tb <- read_data("data.dta")
}
# Write data
if (FALSE) {
write_data(tb, "data.json")
write_data(tb, "data.ftr")
}