-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathex3.R
55 lines (28 loc) · 1.08 KB
/
ex3.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
###################################
# uRos 2018 data.table tutorial #
# #
# Exercise 3 #
###################################
#--------------------------
# get the data
#--------------------------
library(data.table)
air <- data.table(airquality)
#------------------------------------------------------------
# 3.1
# Change the Wind column from miles per hour
# to kilometers per hour (1 mph = 1.6 kmh)
#------------------------------------------------------------
#------------------------------------------------------------
# 3.2
# Calculate a new 'chill' variable (Wind * Temperature)
#------------------------------------------------------------
#------------------------------------------------------------
# 3.3
# Calculate the average chill by month and
# add that as a new variable
#------------------------------------------------------------
#------------------------------------------------------------
# 3.4
# Remove the Ozone and Solar.R columns
#------------------------------------------------------------