batch_convert_csv: Batch convert csv

View source: R/batch_convert_csv.R

batch_convert_csvR Documentation

Batch convert csv

Description

Convert all csv files in a folder to xlsx and rds files

Usage

batch_convert_csv(
  folder,
  xlsx = TRUE,
  rds = TRUE,
  move_csv = "",
  dec = ".",
  sep = ",",
  ...
)

Arguments

folder

Character string with source folder

xlsx

If TRUE creates xlsx files.

rds

If TRUE creates rds files.

move_csv

If not an empty string it names a folder to move csv to after conversion

dec

Decimal sign

sep

Separator sign

...

Further functions for the underlying read.csv. (e.g. fileEncoding = "WINDOWS-1252")

Value

Writes xlsx and/or rds files into the source folder for each csv file.


jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.