Git Product home page Git Product logo

eda's People

Contributors

nolancardozo13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eda's Issues

Add basic test cases

  • Create a data/samples/ directory with a sample.csv and sample.xlsx file
  • Follow Hadley Wickham's instructions to create a test case structure
  • Write a test case for read_eda for each file in the data/samples/ directory. Ensure that the file is read without errors and that the results have the correct number of rows, column and column names
  • Write a test case for eda_metadata for each file in the data/samples/ directory. Compare the results against a pre-defined data structure stored as a separate file in the data/samples/ directory as sample.csv.meta.yaml and sample.xslx.meta.yaml. Use the attached meta.yaml as a sample
  • Ensure that the tests pass

meta.zip

Change the existing API

Structure the API so that the following works:

install.packages('eda')
library(eda)

# metadata returns an RC class.
# See http://adv-r.had.co.nz/OO-essentials.html
meta = metadata('path-to-file.xlsx', ...)

# All top level meta variables should be available as attributes
# The variable name is the same as the label in lowercase, with space -> underscore
meta$filename
meta$description
meta$source
meta$format
meta$file_size
meta$encoding
meta$row_count
meta$column_count
meta$row_description
meta$sampling_method
meta$prepared_on
meta$modified_on
meta$prepared_by

# All column info must be as a DataFrame
meta$columns
# The library user should be able to change the above.
# For example, they may override a column type from boolean to discrete

# Also store the data
meta$data

# We run methods on this class
meta$save(path='path-to-file.xlsx', sheet='Sheetname', format='xlsx')
# Format can only be XLSX for now, i.e. ignore it. We can add it later

# Apply univariate analysis on the (potentially modified) metadata
# Return ann RC object
uni = univariate(meta)

# This can be saved
uni$save(path='path-to-file.xlsx', sheet='Sheetname', format='xlsx')
uni$saveplot(path='path-to-file.xlsx', sheet='Sheetname', format='xlsx')
# Format can only be XLSX for now, i.e. ignore it. We can add it later

Feedback from usage

  • Metadata: show file size in natural units. Or at least add commas
  • Univariate: allow log plots and log-log plots. Users should be able to pick which plots have what scale
  • Box plots: not as useful as histogram - other than to spot outliers. Can we add outliers to histogram and skip this?
  • Rank frequency: less useful than histogram. Make this optional
  • Bivariate cat-vs-cat: show values as proportions of column total
  • Bivariate outliers: show exceptions when relationship is strong / clear

Documentation

  • Documentation - Add the documentation on usage.
  • Samples - Add an examples folder containing 3 R inbuilt datasets, run the analysis and show the output.

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.