I have this code in Gauss.
if prodc((lowerlb2[.,2] .le thxseq[.,2]).*(thxseq[.,2] .le upperlb2[.,2]))==1; count_bb[2,2] = count_bb[2,2] 1; endif;
Any help for executing this particular statement in R will be appreciated.
I have this code in Gauss.
if prodc((lowerlb2[.,2] .le thxseq[.,2]).*(thxseq[.,2] .le upperlb2[.,2]))==1; count_bb[2,2] = count_bb[2,2] 1; endif;
Any help for executing this particular statement in R will be appreciated.
Copyright © 2021 Jogjafile Inc.
I do not have access to your data e.g.
lowerlb2
, but this is how to do the example in the documentation in R:In Gauss:
In R:
Note that
lapply
instead ofapply
is used.There is a free book at https://r4ds.had.co.nz/ to learn data analysis in R using the tidyverse.