forder should not accept list, but forderv should

Open
#4,346 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start by reading the existing forder and forderv entry points, then review the linked discussions and issues #4214, #4456, and #3447 plus PR #3817. Define the intended behavior for data.table/list input, ordering arguments, NULL, na.last=NA, messaging, and export status before implementing and testing the complete set of decisions.

Written by the indexing model from the issue text.

Description

consistency internals

Recent issue reported by @MichaelChirico https://github.com/Rdatatable/data.table/issues/4214 reminded me some old discussion with @mattdowle that happened in https://github.com/Rdatatable/data.table/pull/3817.

To summarize it.

  • forderv should expect data.table/list input
  • forder should be a replacement for order
    • whenever user uses forder(DT) there should be a (verbose?) message pointing to use forderv; edit: base::order takes data.frame but returns nonsense
    • support for a 1+ length decreasing, method argument #4456
    • raise error for NULL input
    • na.last=NA should remove 0 from output

also we could export forder at the same time https://github.com/Rdatatable/data.table/issues/3447

Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.