Skip to content

Error in if (xhat == 0) out <- 1 else { : missing value where TRUE/FALSE needed #74

@Kingsman-Key

Description

@Kingsman-Key

I encountered an error just as the title. Error in if (xhat == 0) out <- 1 else { : missing value where TRUE/FALSE neededI already read the previous issue. It showed that i need to turn mediator into numeric so that this funtion could work. But i alread turn it into numeric. It still gives this error. So i pull out 1000 rows of data out of my data and uploaded here since github seems not to be able to accept rar as attachment. Unpack it and click the rproj and open testRcode.R. Just run it you may replicate the error i encounter. Many thanks!

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