Flag aggregation by the frequency count method
flag_frequency(f)
f | A vector of flags containing the flags of a series for a given period. |
---|
flag_frequency
returns a character with a single character flag in case the highest frequency count
is unique, or multiple character in case there are several flags with the highest frequency count.
#> [1] "p"#> [1] "e" "p"#> [1] "e" "u"#> $`2009-01-01` #> [1] "p" #> #> $`2010-01-01` #> [1] "p" #> #> $`2011-01-01` #> [1] "e" #> #> $`2012-01-01` #> [1] "e" "u" #> #> $`2013-01-01` #> [1] "u" #> #> $`2014-01-01` #> [1] "p" #> #> $`2015-01-01` #> [1] "p" #>