Skip to content

Unexpected output from sepCensored #13

Description

@lindsayplatt

When you incorrectly use a dataframe rather than a vector in sepCensored, it doesn't fail. It just produces a warning about NAs being introduced by coercion. This should fail immediately.

myvals <- c(10:15, "<6", "<8")
mydata <- data.frame(myvals, 10:17)
sepCensored(mydata)

$numeric_vals
[1] NA NA

$censored
[1] NA NA

Warning message:
In sepCensored(mydata) : NAs introduced by coercion

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions