Anonymous user
Box the compass: Difference between revisions
m
→{{header|R}}
m (→{{header|R}}) |
m (→{{header|R}}) |
||
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
# Build a table of directions
pts <- data.frame(
Line 5,951:
Here are the test inputs:
<lang
test <- data.frame(
deg = c( 0.0, 16.87, 16.88, 33.75, 50.62, 50.63, 67.5, 84.37,
|