count | R Documentation |
Count the number of occurences of some element.
count(x, elem)
## S3 method for class 'Container'
count(x, elem)
## S3 method for class 'Set'
count(x, elem)
x |
any |
elem |
element to counted. |
integer
number of how many times elem
occurs in the object.
co = container("a", "b", "a", mean, mean)
count(co, "a")
count(co, mean)
count(co, "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.