calcPlantingAngle: Calculate planting angle based on an initial and terminal...

View source: R/calcPlantingAngle.R

calcPlantingAngleR Documentation

Calculate planting angle based on an initial and terminal longitude and longitude.

Description

Calculates planting angle based on an initial longitude and longitude, terminal longitude and latitude, direction of rotation and planting direction.

Usage

  calcPlantingAngle(LongLat1,LongLat2,rotation,plantingDir)

Arguments

LongLat1

this is the initial longitude and latitude of where you plan to begin planting. Values should be stored as c(-98.1878745,40.8915224).

LongLat2

the is the terminal longitude and latitude for where your first planting row will end. Values should be stored as c(-98.1878745,40.8915224).

rotation

direction you will be rotating field. There are one of two inputs to select from (arguments must be in quotes): "cw" - clockwise, "ccw" - counter-clockwise

plantingDir

the direction you will be planting. There are one of two inputs to select from: "N/S" - north/south planting direction, "E/W" - east/west planting direction

Details

The function returns a planting angle based on initial and terminal long/lat

Value

planting angle in degrees

Examples

  ##see Vignette at https://github.com/cb-agr/agriPlot

cb-agr/agriPlot documentation built on April 14, 2022, 1:01 p.m.