程序代写代做代考 Coursework using R

Coursework using R
Question 1
(a)

durham<- read.csv("/Users/vagrant/tasks-2017/R-4-19/data/durham.txt",header=TRUE, sep="\t") eastbourne<- read.csv("/Users/vagrant/tasks-2017/R-4-19/data/eastbourne.txt",header=T RUE, sep="\t") View(durham) View(eastbourne) (b) eastbourne[1,1:2]     yyyy

mm

1 1959 1

1 row

durham[1,1:2]

 
 

yyyy

mm

1 1880 1

1 row

At the Eastbourne station, records begin in 1959, January. At the Durham station, records begin in 1880 ,
January.

(c)

hist(durham$tmin, col=’red’, xlim = c(-8, 15))

Code

Hide

Hide

Hide

Hide

It has a double-peaked(around 0 and 10) bimodal distribution.

(d)

hist(durham[durham$mm == 1, ]$tmin, col=’red’, xlim = c(-6, 5))

It has a single-peaked left skewed distribution compared to the double-peaked bimodal distribution in part (c),

Hide