Learn R Programming

puff (version 0.1.0)

get_stab_class: Determine Stability Class Based on Wind Speed and Time of Day

Description

This function calculates the stability class based on wind speed (U) and the time of day. It categorizes the atmosphere's stability as one of several classes (A-F) depending on the inputs.

Usage

get_stab_class(U, time)

Value

A character vector representing the stability class(es) ("A" to "F").

Arguments

U

A numeric value representing the wind speed in meters per second.

time

A time value that is used to determine whether it's day or night.

Examples

Run this code
out <- get_stab_class(3, 12)

Run the code above in your browser using DataLab