Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.2 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.2 KB

hypoparsr

Build Status CRAN_Status_Badge

hypoparsr takes a different approach to CSV parsing by creating different parsing hypotheses for a given file and ranking them based on data quality features.

Installation

  • the latest released version from CRAN with

    install.packages("hypoparsr")
  • the latest development version from github with

    devtools::install_github("tdoehmen/hypoparsr")

If you encounter a bug, please file a minimal reproducible example on github.

Usage

# generate a CSV
csv <- tempfile()
write.csv(iris, csv, row.names=FALSE)

# call hypoparsr
res <- hypoparsr::parse_file(csv)

# show result overview
print(res)

# get result data frames
best_guess <- as.data.frame(res)
second_best_guess <- as.data.frame(res, rank=2)

Demo

Demo