Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「カット」コマンドを使用して風データを分析しようとしてい ます。16 の風向を設定したいのですが、 348.75 から 11.25 までの方向を「0」ラベルにカットするにはどうすればよいですか? ありがとうござい ます
おそらくこれは一般的なアドホックな解決策ではありませんが、方向の値に 360/16/2 を追加することで解決できます。
w<- -15:375 direction<-cut((w+360/16/2)%%360,breaks=seq(0,360,length=17),labels=FALSE)-1
方向データを扱うのに役立つ素晴らしいcircularパッケージがあります。
circular