powered by
Count the number of occurences of some element.
count(x, elem)# S3 method for Container count(x, elem)# S3 method for Set count(x, elem)
# S3 method for Container count(x, elem)
# S3 method for Set count(x, elem)
integer number of how many times elem occurs in the object.
integer
elem
any R object.
R
element to counted.
co = container("a", "b", "a", mean, mean) count(co, "a") count(co, mean) count(co, "c")
Run the code above in your browser using DataLab