Skip to content

!all(unique(gL$strand)) and Warning #18

@abrozzi

Description

@abrozzi

Hi,

just to report that the following piece of code when gene location is passed as data.frame:

if (!all(unique(gL$strand)) %in% c(-1, 1)) {
            return('Strand must be coded with -1 and 1')
        }

returns a Warning:

Warning message:
In all(unique(gLl$strand)) : coercing argument of type 'double' to logical

even if whengL$strand has only c(1, -1).

Bests
-A

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