Code Monkey home page Code Monkey logo

jsplyr's People

Contributors

rgertenbach avatar

Stargazers

 avatar

Watchers

 avatar

jsplyr's Issues

Include a dispatcher / parser

At the moment to call fun, as or is you need to re-access the object.

What if we have a function query in which each argument is a call to a function with arguments, be it in array form or whatever

this could then even be wrapped by a language parser

Add ungroup_by function

Should unwrap Arrays

arguments are ids, which can also be arrays
How to deal wit non-arrays?
How to deal with non-equal length arrays?

Add option for TVFs

Applies a JavaScript function that takes each row as an input and produces 0 or more output rows.
Each Row is supplied as a JavaScipt object with the column header as the key.

Rebuild JSplyr to use Prototypes

Current model creates new objects with their own identical methods but they are unique to the object. They should all share the same prototype.

Improve filtering

There shouldn't be a need to call the object more than once

where(JSplyr.and(JSplyr.is(lop, op, rop), JSplyr.is(lop, op, rop)))

filter takes an array of bools
where would take logical constructs or is which are evaluated and fed into filter.

function where(input) {
  if(input.hasOwnProperty(lop)) {
    this.is(input)
  } else {
    return this.filter(input)
  }

and expand logical constructs to take and evaluate expressions

function and() {
  arguments.map(function(arg) {
    if (input.hasOwnProperty(lop)) {
      return this.is(arg)
    }
  })
}

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.