rgertenbach / jsplyr Goto Github PK
View Code? Open in Web Editor NEWA dplyr inspired way to manipulate data in Google Apps Script (and JS in general)
License: MIT License
A dplyr inspired way to manipulate data in Google Apps Script (and JS in general)
License: MIT License
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
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?
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.
Current model creates new objects with their own identical methods but they are unique to the object. They should all share the same prototype.
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)
}
})
}
Needs desc function
Check if this is possible and add ability if not.
I think right now the function itself has to reference the fields which may be a bit clumsy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.