Skip to content

Commit 23712c2

Browse files
committed
Fix task numbering in exercise
1 parent 5425887 commit 23712c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/Loops-temperature-sensors-R.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ Each file contains two columns:
1616
- `hour`: Hour of the day (0-23)
1717
- `temperature`: Temperature reading in Celsius
1818

19-
1. Use a loop to load each sensor data file and calculate the mean temperature for the sensor. Store the results in a vector called `mean_temps`. After the loop display the completed vector.
19+
1\. Use a loop to load each sensor data file and calculate the mean temperature for the sensor. Store the results in a vector called `mean_temps`. After the loop display the completed vector.
2020

21-
2. Create a copy of your code from (1) and modify it to also find the maximum temperature recorded by each sensor and the temperature range (difference between maximum and minimum temperature) for each sensor. Store these values in vectors called `max_temps`, and `temp_ranges`. After the loop display the completed vectors.
21+
2\. Create a copy of your code from (1) and modify it to also find the maximum temperature recorded by each sensor and the temperature range (difference between maximum and minimum temperature) for each sensor. Store these values in vectors called `max_temps`, and `temp_ranges`. After the loop display the completed vectors.
2222

23-
3. Create an empty data frame to store all your results and then write a loop to determine the following values for each file and store them in the data frame:
23+
3\. Create an empty data frame to store all your results and then write a loop to determine the following values for each file and store them in the data frame:
2424

2525
- `sensor_file`: The filename of the sensor data
2626
- `mean_temp`: Mean temperature for that sensor
2727
- `max_temp`: Maximum temperature recorded
2828
- `min_temp`: Minimum temperature recorded
2929
- `temp_range`: Temperature range (max - min)
3030

31-
4. **Challenge (optional)** Extend your analysis to find the hour when each sensor recorded its highest temperature. Add a column called `peak_hour` to your results data frame and display the data frame.
31+
4\. **Challenge (optional)** Extend your analysis to find the hour when each sensor recorded its highest temperature. Add a column called `peak_hour` to your results data frame and display the data frame.

0 commit comments

Comments
 (0)