Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
3 R session: Weather extremes To get started, you will need to be seated at a computer with R installed, and initiate R, which
 

Summary: 3 R session: Weather extremes
To get started, you will need to be seated at a computer with R installed, and initiate R, which
is usually done through menus selected from the Start menu, or an icon. In addition the
libraries ismev and evd should be installed. We will connect these, and install some of our
own supplementary routines, using the commands
> library(ismev)
> library(evd)
> source('Rstufflee.r')
Provided these all go through without a hitch, we are ready to go!
1. In this question, we will do a simple analysis of annual maximum wind speeds recorded
at Boston, Massachusetts, for 50 years from 1936 to 1985.
(a) Provided you have the file boston.txt in your working directory, this can be
loaded into Rusing the command:
> boston<-scan(`boston.txt')
We have now created an R object called boston which is a single column con-
taining consecutive years with annual maximum wind speeds in mph. We can have
a look at this by simply typing:
> boston
(b) We now wish to separate out the year and maximum components into separate
vectors. This can be done using the commands:

  

Source: Applebaum, David - Department of Probability and Statistics, University of Sheffield

 

Collections: Mathematics