rot.deg {holland} | R Documentation |
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 |
Details
postive values vor amount
will result in clockwise rotation an negative values will result in counterclockwise rotation
Value
values in degrees rotatet by amount; optionaly number of revolutions
Examples
## 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)
[Package holland version 0.1.2-1 Index]