Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to count the true values in r
Abhi
Programming language:
Whatever
2021-08-06 10:55:38
0
Q:
how to count the true values in r
Shumroz
Code:
Whatever
2021-06-26 16:34:20
a = c(NA,T,F,F) sum(a, na.rm=TRUE) # best way to count TRUE values #which gives 1.
1
Tags
value
how
values
count
true
Related
count the number in a dataframe in r
calculated defualt values in R function parameters
how to tell if a variable is discrete or continuous in r
conditional mean statement r
mean of a row dataframe in r
if and else if in r
how to count the number of NA in r
detect rank deficient in r
count length of string r
how to get the r2 value in r
Excel sheet count rows
New to Communities?
Join the community