Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

ROutputParser is parsing NA as 0 #26

@gb5256

Description

@gb5256

Hi,
please check this function:

public function singleNumber($output)
{
    //TODO properly check if r output is a valid number
    return 0 + substr($output, 4);
}

The problem is that if the return from R is like this:
[0] NA
the script will return "0".
But 0 is something else than NA, right?

gb5256

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