Displaying 1 result from an estimated 1 matches for "compass2polar".
2013 Mar 05
2
Function completely locks up my computer if the input is too big
...15.2, Platform: x86_64-w64-mingw32/x64 (64-bit) on a
windows 7 machine with 4 mb RAM. In the meantime I suppose I'll write a
loop to do this function piece-wise for larger data and see if that helps.
Script is attached and appended below.
Thanks
Ben Caldwell
#compass to polar coordinates
compass2polar <- function(x) {-x+90}
#degrees (polar) to radians
Deg2Rad <- function(x) {(x*pi)/180}
# radians to degrees
Rad2Deg <- function (rad) (rad/pi)*180
# polar to cartesian coordinates - assumes degrees those from a compass.
output is a list, x & y of equal length
Pol2Car <-...