Hello all,
For some reason, I get a negative mean angle from this circular dataset. The true mean angle should be 198°. What am I doing wrong here, thanks.
library(circular)
#>
#> Attaching package: 'circular'
#> The following objects are masked from 'package:stats':
#>
#> sd, var
library(knitr)
library(tidyverse)
FBD1E <- data_frame(c(228,64,259,124,150,152,309,335,256,242,233,334,34,198,229,225,105,203, 260, 134, 231, 143, 165, 166, 156, 227, 317, 154, 102, 208, 191, 15, 144, 329, 184, 321, 230, 276, 155, 73, 289, 204, 201, 5, 246, 179, 301, 208, 202, 55, 223, 159, 112, 276, 85, 137, 226, 174, 158, 155))
#> Warning: `data_frame()` is deprecated, use `tibble()`.
#> This warning is displayed once per session.
FBD1E.cir <- circular(FBD1E, units = "degrees", template = "geographics")
mean(FBD1E.cir)
#> Circular Data:
#> Type = angles
#> Units = degrees
#> Template = geographics
#> Modulo = asis
#> Zero = 1.570796
#> Rotation = clock
#> [1] -162.3523