What are vectors?
Vector operations
Indexing and filtering
Simple analysis
Summary

Instruction

Another important function that is worth mentioning is length(). This function takes a vector as its argument and calculates number of elements in that vector. The function call

length(ages)
will return 12 because there are 12 elements in the vector. It's as simple as that!

Exercise

Check how many employees earn a salary greater than median.

Stuck? Here's a hint!

First, you have to filter the salaries vector to find only these salaries that are greater than median. Then check the filtered vector length. To calculate median salary, use:

median(salaries)