DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+6 =
Submit