Week 7 R Lab
Week 7 R Lab
7
R
Lab
Download
the
data
file
usedcars,csv
from
Moodle
1.
Load
the
usedcars.csv
data
into
R.
2.
What
are
the
column
names?
3.
What
is
the
structure
of
the
data
frame
(i.e.
how
many
row
/
cols
and
what
type
are
they).
4.
What
is
the
mean
price
and
mileage?
5.
Calculate
the
quintiles
(i.e.
5
evenly
spaced
regions)
for
the
price
range
6.
Draw
a
boxplot
of
the
price
and
mileage
attributes.
Label
the
plots
"Boxplot
of
Used
Car
Prices"
and
"Boxplot
of
Used
Car
Mileage"
respectively.
Dont
forget
to
label
the
y-axes
of
the
plots.
7.
Draw
a
histogram
of
the
price
and
mileage
attributes.
8.
Calculate
the
variance
and
standard
deviation
of
car
Prices
9.
Investigate
the
categorical
data
using
the
table
()
command
10.
Investigate
the
relationship
between
mileage
and
price
using
the
plot
command