Answers for "r count values"

C
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
2

count row r

nrow(df)
Posted by: Guest on April-03-2021
-1

r count dataframe

df %>%
  count(column_to_check)
Posted by: Guest on February-27-2021

Code answers related to "C"

Browse Popular Code Answers by Language