Re: [R] Wrap to 360

2017-02-13 Thread William Dunlap via R-help
The key function is '%%' (remainder), but its result needs to be tweaked at mulitplies of 360 because Matlab's definition of wrapTo360 is lonWrapped = wrapTo360(lon) wraps angles in lon, in degrees, to the interval [0 360] such that 0 maps to 0 and 360 maps to 360. (In general, positive multiples

[R] Wrap to 360

2017-02-13 Thread Peter Mills
Hi Is there an equivalent for R of the Matlab function wrapTo360? Many thanks Peter [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE