write_csv_rds: Write a dataframe to a CSV and RDS

View source: R/file_tools.R

write_csv_rdsR Documentation

Write a dataframe to a CSV and RDS

Description

Write a dataframe to a CSV and RDS

Usage

write_csv_rds(df, path, basename)

Arguments

df

(Dataframe) A dataframe.

path

(Character) The output folder. It will be created if it does not exist. Two sub-directories (⁠/csv/⁠ and ⁠/rds/⁠) will also be created if they don't exist.

basename

(Character) The name of the resulting files, without a path or extension.

Value

Returns TRUE invisibly on success.

Examples

# write_csv_rds(iris, "_output", "my_iris")

#> Wrote 'iris' to '_output/csv/my_iris.csv'.
#> Wrote 'iris' to '_output/rds/my_iris.rds'.


DesiQuintans/desiderata documentation built on April 9, 2023, 5:43 a.m.