Skip to content

frankv + ties.method = 'random' + na.last = NA gives a warning #3167

Closed

Description

@MichaelChirico
frankv(list(c(1, 1, 2, 5, 4, 3, 4, NA, 6)), ties.method = 'random', na.last = NA)

Warning message:
In set(x, i = if (is.na(na.last)) which_(nas, FALSE) else NULL, :
Supplied 9 items to be assigned to 8 items of column '..stats_runif..' (1 unused)

If I understand the documentation correctly, this is wrong behavior.

This came up in the midst of a coverage improvement PR I'm working on, so this will be finished soon.

Activity

  1. added a commit that references this issue on Nov 30, 2018
    d96d759
  2. added this to the 1.12.0 milestone on Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions