char2numAspect: Conversion of character Aspects to numeric Aspects

View source: R/char2numAspect.R

char2numAspectR Documentation

Conversion of character Aspects to numeric Aspects

Description

Convert character aspects (of snow profile locations) to numeric values. For example, Aspect "N" (north) becomes 0 degrees azimuth.

Usage

char2numAspect(charAspect)

Arguments

charAspect

Character string of aspect location, i.e., one of

  • c("N", "NE", "NNE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW")

Value

Float value of numeric aspect location, North = 0 degree, S = 180 degree

Author(s)

fherla

Examples

char2numAspect("W")
char2numAspect("WNW")

char2numAspect(c("N", NA, "NA", "NE"))


sarp.snowprofile documentation built on March 31, 2023, 5:17 p.m.