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

Extend length(unique()) logic in any_duplicated_linter() for dplyr,data.table syntaxes #2481

Open
MichaelChirico opened this issue Dec 19, 2023 · 0 comments · May be fixed by #2795
Open

Extend length(unique()) logic in any_duplicated_linter() for dplyr,data.table syntaxes #2481

MichaelChirico opened this issue Dec 19, 2023 · 0 comments · May be fixed by #2795
Labels
feature a feature request or enhancement

Comments

@MichaelChirico
Copy link
Collaborator

Examples:

DT[, length(unique(col)) == .N]
DT[, uniqueN(col) == .N
DT %>% filter(length(unique(col)) == n())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant