Displaying 1 result from an estimated 1 matches for "assay1".
Did you mean:
assay
2017 Aug 08
1
Bug?
Hello,
In my code I found something that looks like an anomaly, I found a reproducible example in which I am just trying to compare each row in a data frame against the first row:
a<-data.frame(row=c("B","C","B"),column=c(2,2,10),assay=c("Assay1","Assay1","Assay1"),plate=c(1,1,1),stringsAsFactors=FALSE)
apply(a[1:2,],1,function(x) { all(x==a[1,]) })
apply(a[1:3,],1,function(x) { all(x==a[1,]) })
> > 1 2
TRUE FALSE
> 1 2 3
FALSE FALSE FALSE
>
The second result is not right, it shoul...