Skip to content

Apparent inconsistency in output when both the number of characters of a & b are smaller than q #96

Description

@fabiocs8

Consider the NA correct result of:

stringdist(   "", "XXX"
              , method = "cos"
              , q = 3)

However, if both a and b have nchar() < q, the output becomes 0:

stringdist(   "", "XX"
              , method = "cos"
              , q = 3)

In my view, the output for the second case would be more consistent if it were NA also. Does it make sense?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions