Skip to contents

cut_wd() cuts numeric wind speed into sectors. By default, the function splits wind direction into 8 sectors ("N", "NE", "E", "SE", "S", "SW", "W", "NW"), it can also be split into either 4 or 16.

Usage

cut_wd(x, resolution = "medium")

Arguments

x

numeric vector representing wind speed, where 0 is North.

resolution

A character string representing the number of sectors to split wind direction into. Can be `0

Value

a character vector.

Examples

if (FALSE) {
# vector
cut_wd(openair::mydata$wd)
# data frame
dplyr::mutate(openair::mydata, wd_bin = cut_wd(wd))
}