Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced functionality of 'mult' argument #1260

Open
7 tasks
arunsrinivasan opened this issue Aug 11, 2015 · 2 comments
Open
7 tasks

Enhanced functionality of 'mult' argument #1260

arunsrinivasan opened this issue Aug 11, 2015 · 2 comments

Comments

@arunsrinivasan
Copy link
Member

arunsrinivasan commented Aug 11, 2015

This is a merge of issues #651, #655 and #1233 since they are very much related. Will close all the other issues.

Note: Remember to thank @MuhammadWaliji and @MichaelChirico for filing those FRs.

Enhanced functionality for mult = argument:

From #651:

  • 1L - similar to "first"
  • .N - similar to "last"
  • "sample" - 'random' - sample(.N, size = 1L)
  • -1L - all but first
  • c(FALSE, TRUE) - even rows

See this link for more info from the data.table mailing list. Also refer to #651 if necessary.

@arunsrinivasan arunsrinivasan added this to the v1.9.8 milestone Sep 22, 2015
@arunsrinivasan arunsrinivasan modified the milestones: v2.0.0, v1.9.8 Mar 20, 2016
@mattdowle mattdowle removed this from the Candidate milestone May 10, 2018
@jangorecki jangorecki changed the title [FR] Enhanced functionality of 'mult' argument Enhanced functionality of 'mult' argument May 22, 2019
@Henrik-P
Copy link

SO post to be updated when "random" is implemented:

Join data frames and select random row when there are multiple matches

@MichaelChirico
Copy link
Member

I don't see much benefit to mult = 1L or mult = .N, propose to just drop those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants