FindMyFriends icon indicating copy to clipboard operation
FindMyFriends copied to clipboard

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

Open abrozzi opened this issue 4 years ago • 0 comments

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

abrozzi avatar May 18 '20 16:05 abrozzi