fst icon indicating copy to clipboard operation
fst copied to clipboard

Single value subsetting (i.e. `[[`) interface

Open nbenn opened this issue 6 years ago • 1 comments

All of base R data.frames, data.tables and tibbles support x[[i, j]] type subsetting. While I realise that there is quite a bit of heterogeneity (among the mentioned packages) in how edge cases are handled in subsetting and what type of arguments are supported, they all agree on support of "i, j" indexing. I therefore suggest adding this to fst as well in order to make the interface a bit more consistent.

I'm happy to submit a PR if this is of interest to @MarcusKlik.

nbenn avatar Oct 24 '19 14:10 nbenn

Hi @nbenn, yes indeed, the x[[i, j]] generic is missing at the moment I see. For completeness, it would be nice to have it, a pull request would be much appreciated :-)

MarcusKlik avatar Oct 25 '19 11:10 MarcusKlik