Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
What are vectors?
Vector operations
Indexing and filtering
Simple analysis


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

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


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: