Learn R Programming

holland (version 0.1.2-1)

rot.deg: rotate degrees by amount in degrees

Description

This function rotates angular locations in degrees by an ampunt given in degrees

Usage

rot.deg(x, amount = 0, rev = FALSE)

Arguments

x

numeric values in degrees

amount

amount to rotate

rev

logical if TRUE list objekt is returnd with number of revolutions

Value

values in degrees rotatet by amount; optionaly number of revolutions

Details

postive values vor amount will result in clockwise rotation an negative values will result in counterclockwise rotation

Examples

Run this code
# NOT RUN {
## rotation by 30 degrees
# inital value smaler than 330 degrees
rot.deg(200,30)
rot.deg(200,30,TRUE)
# inital value smaler than 360 degrees
rot.deg(350,30)
rot.deg(350,30,TRUE)
# inital value biger than 360 degrees
rot.deg(900,30)
rot.deg(900,30,TRUE)
# }

Run the code above in your browser using DataLab