comma_broken_csv: Generates Report on Comma-Broken Status of CSV(s)

Description Usage Arguments Details Value Examples

Description

Generates Report on Comma-Broken Status of CSV(s), including broken rows and potential offending columns needing to be quoted in file.

Usage

1
comma_broken_csv(path = ".")

Arguments

path

path-to-file or path-to-folder

Details

If path param is a folder, for readability a report named ‘csv_comma_broken_report.txt’ is dropped into path folder and opened automatically to source pane. But if path param is only a file, then the report is only printed to console.

Value

print report to console (and if multiple, sinks file to parent folder and opens report with file.show())

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
comma_broken_csv(getwd())
# or
comma_broken_csv("path_to_file")

# Or if you want to run a test on multiple files
# not contained in the same (grand)parent folder,
# then lapply over the file paths like so:
lapply(c("file.path1", "file.path2"), comma_broken_csv))

## End(Not run)

steventsimpson/brokenCSV documentation built on May 30, 2019, 4:47 p.m.