I'm trying to use the all_metrics()
function of the iglu package in R. The function always throws an error when calling the mage_ma_single()
function, which itself gets called by the mage()
function. Here's the package's function's source code which leads to an error, see lines 58 to 64.
Here's the error I'm getting:
Error: Problem with
mutate()
columnMA_Long
. ℹMA_Long = replace(MA_Long, 1:long_ma, MA_Long[long_ma])
. ℹMA_Long
must be size 5 or 1, not 23.
Here's some sample data with which I can reproduce the error:
structure(list(id = c(1, 1, 1, 1, 1), time = structure(c(1611228720, 1611229080, 1611247620, 1611249960, 1611263940), class = c("POSIXct", "POSIXt"), tzone = ""), gl = c(97L, 90L, 89L, 96L, 87L)), row.names = c(NA, 5L), class = "data.frame")