Git Product home page Git Product logo

validata's Introduction

valiData Follow

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Build Status Version

valiData lets you keep calm about data imports, by validating it against a mapping of data conditions

Table of Contents

Installation

To download the development version of valiData:

Download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or use the pacman package to install the development version:

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh("data-steve/valiData")

Contact

You are welcome to:

validata's People

Contributors

trinker avatar data-steve avatar

Stargazers

 avatar Jimmy Briggs avatar Basel Ajarmeh avatar Omair A. Khan avatar Srikanth K S avatar Stas Sajin avatar  avatar Eduardo Flores avatar Michael P. Manti avatar Adam H. Sparks avatar  avatar

Watchers

 avatar Dusan Sovic avatar  avatar Srikanth K S avatar Mike Judd avatar Alexander B. Leichtle avatar

Forkers

trinker guhjy

validata's Issues

Duplicate rows reporting (push)

Add grouped reporting of dupe rows:

set.seed(14)
dat <- data.frame(mtcars[sample(1:5, 14, TRUE), ])[sample.int(14), ]
rownames(dat) <- NULL
dat

library(dplyr)
add_rownames(dat) %>% 
      group_by_(.dots= names(dat)) %>% 
      filter(n()>1) %>%
      summarise(rn= paste(rowname, collapse=", "))%>%
      .$rn %>%
      paste0("(", ., ")", collapse="")
(3, 7, 8, 10, 11)(2, 13)(1, 4, 5, 6, 9)

currently vd_non_empty is not a function

turn into a function

has_files <- length(dir(path, pattern = paste0("\\.",test[["file"]][["type"]],"$")) )>0

vd_non_empty <- function(path){
  length(dir(path, pattern = paste0("\\.",test[["file"]][["type"]],"$")) )>0
}

zip code

currently we allow the patterns ##### or #####-#### ie 5 or 5 dash 4 format. That means a 9 digit without a dash fails. Should it?

The fix is to go from: "^\\d{5}(-\\d{4})?$" to "^\\d{5}(-?\\d{4})?$"

build vf_non_empty

folders can be empty : vd_non_empty (actually we just fail it if main folder is empty)

folders can contain files that are completely empty : this is vf_non_empty

files can contain headers but no table data : this is vt_non_empty

tables can contain headers but no column data in required cols : this is vt_required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.