powered by
Counts how many observations (optionally, satisfying a condition)
count(ifstmt)
an optional argument which gives an condition that must be met for the observation to be counted
returns the count
# NOT RUN { use(cars, clear=TRUE) count() count(speed <= 20) # }
Run the code above in your browser using DataLab