Answers for "count how many trues in r"

R
1

how to count the true values in r

a = c(NA,T,F,F)
sum(a, na.rm=TRUE) # best way to count TRUE values #which gives 1.
Posted by: Guest on October-09-2020

Code answers related to "count how many trues in r"

Browse Popular Code Answers by Language