Exercise

Selecting Observations using Subscripting

Selecting observations using subscripting can be done by putting logic in the row position (before the comma). The data frame businesshours is pre-loaded in the workspace.

Remember that this data is about:
- Eight employees of a company are reviewed on their work.
- Their average number of business hours per week in each quarter of the year is analyzed.

The results are assigned to variables QR1, QR2, QR3 and QR4 for quarter 1 to 4, respectively. The business hours were obtained over two periods of time: before the crisis ("bc") and after the crisis ("ac") and out of two countries: country 1 and 2.

Instructions

100xp

Select the observations of businesshours from the period before the crisis ("bc").

Select the observations of businesshours with the number of hours worked in the first quarter (QR1) bigger than 34 and smaller than or equal to 36 and make a summary of this.