countIf | R Documentation |
Simple count of records satisfying a conditional expression
countIf(data, cond = NULL)
data |
The dataset where records should be counted |
cond |
A logical expression |
Number of records
df <- data.frame(Id = 1:4 ,
Vaccs = c("pfizer"," ", "pfizer", "moderna"))
countIf(df)
countIf(df,Vaccs=='pfizer')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.