convert_to: Converts B3 messy files to structured formats

View source: R/convert_to.R

convert_toR Documentation

Converts B3 messy files to structured formats

Description

Convert B3 files to structured formats based on the template.

Usage

convert_to(
  filename,
  template = NULL,
  parse_fields = TRUE,
  format = "csv",
  destdir = NULL
)

Arguments

filename

a string containing a path for the file.

template

a string with the template name.

parse_fields

a logical indicating if the fields must be parsed.

format

output format

destdir

a string with destination directory to save converted file

Value

a string with the file path of generated file.

See Also

read_marketdata

Examples

## Not run: 
f <- system.file("extdata/Indic.txt", package = "rb3")
res <- convert_to(f, output_format = "csv")
res <- convert_to(f, output_format = "json")

## End(Not run)

rb3 documentation built on April 14, 2023, 5:10 p.m.