Jump to content

Box the compass: Difference between revisions

m
Line 5,926:
R (also known as Arrr me hearties!) is ideally suited to this task. Here's an easy to understand but inefficient way to solve it:
 
<lang Rrsplus>
# Build a table of directions
pts <- data.frame(
Line 5,951:
Here are the test inputs:
 
<lang Rrsplus>
test <- data.frame(
deg = c( 0.0, 16.87, 16.88, 33.75, 50.62, 50.63, 67.5, 84.37,
Cookies help us deliver our services. By using our services, you agree to our use of cookies.