patperry / old-r-frame Goto Github PK
View Code? Open in Web Editor NEWFlexible data frames supporting keys and matrix columns (R package)
License: Apache License 2.0
Flexible data frames supporting keys and matrix columns (R package)
License: Apache License 2.0
keys(x[y])
should be keys(y)
when y
is a dataset of keys
> dataset(mtcars[1,])
══════════════════════════════mtcars[1, ]══════════════════════════════
mpg cyl disp hp drat wt
1 21 6 160 110 3.9 2.62
⋮
mtcars[1, ]
…
1 …
⋮ (11 columns total)
replace NA with ""
allow datetime keys: convert Dates to POSIXct (tz = "UTC"); convert POSIXlt to POSIXct, leaving timezone as-is
Currently, this clashes with data.table
:
rowid
These clash with dplyr
:
distinct
order_by
slice
Should probably get rid of distinct
and add an S3 instance for unique
.
May not be worth it for the rest; dplyr
and data.table
also clash with each other. Users probably won't use two of these packages at the same time anyway.
This should return a vector:
x[cbind(i,j)]
i
gives row index, j
gives column index
otherwise restrict
is not well-defined.
NULL
key names should be allowed, otherwise cbind
is messy
x[i]
where i is logical having same dimensions as x should work
as.matrix.data.frame is broken, need to write our own (https://stat.ethz.ch/pipermail/r-devel/2017-December/075187.html )
once API stabilizes
e.g., if key is int, query is .Machine$integer.max + 1
, report not found; can't rely on as.integer
because NA
might be a key
also applies to character key with invalid UTF-8 or bytes query
make sure argument keys match
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.