Skip to content

filter and integer indices #226

@romainfrancois

Description

@romainfrancois

Would it make sense to support integer indices in filter. Something like this:

> mtcars %.% group_by(cyl) %.% filter(1:3)
> mtcars %.% group_by(cyl) %.% filter(sample(n(), 10))

Perhaps it is another verb though ?

Would help for this question: http://stackoverflow.com/questions/21255366/sample-dataframe-with-dplyr

This is related to: #202 but not completely.

Metadata

Metadata

Labels

featurea feature request or enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions