Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bin.wind.records

Classify wind direction and speed records


Description

Classifies wind direction and speed records into a matrix of percentages of observations in speed and direction bins.

Usage

bin.wind.records(winddir,windspeed,ndir=8,radians=FALSE,
  speed.breaks=c(0,10,20,30))

Arguments

winddir

A vector of wind directions.

windspeed

A vector of wind speeds corresponding to the above directions.

ndir

Number of direction bins in a compass circle.

radians

Whether wind directions are in radians.

speed.breaks

Minimum wind speed for each speed bin.

Details

bin.wind.records bins a number of wind direction and speed records into a matrix of percentages of observations that can be used to display a cumulative wind rose with oz.windrose The defaults are those used by the Australian Bureau of Meteorology.

Value

A matrix of percentages in which the rows represent wind speed categories and the columns represent wind direction categories.

Author(s)

Jim Lemon

See Also

Examples

winddir<-sample(0:360,100,TRUE)
 windspeed<-sample(0:40,100,TRUE)
 bin.wind.records(winddir,windspeed)

plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.