Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

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. 
 
PREVIOUS NEXT
Tagged: #count #true #values
ADD COMMENT
Topic
Name
8+9 =