Learn R Programming

geostats (version 1.5)

meanangle: mean angle

Description

Computes the vector mean of a collection of circular measurements.

Usage

meanangle(trd, plg = 0, option = 0, degrees = FALSE)

Value

a scalar of 2-element vector with the mean orientation, either in radians (if degrees=FALSE), or in degrees.

Arguments

trd

trend angle, in degrees, between 0 and 360 (if degrees=TRUE) or between 0 and \(2\pi\) (if degrees=FALSE).

plg

(optional) plunge angle, in degrees, between 0 and 90 (if degrees=TRUE) or between 0 and \(2\pi\) (if degrees=FALSE).

option

scalar. If option=0, then plg is ignored and the measurements are considered to be circular; if option=1, then trd is the azimuth and plg is the dip; if option=2, then trd is the strike and plg is the dip; if option=3 then trd is the longitude and plg is the latitude.

degrees

TRUE for degrees, FALSE for radians

Examples

Run this code
data(striations,package='geostats')
meanangle(striations,degrees=TRUE)

Run the code above in your browser using DataLab