Closed fmmattioni closed 5 years ago
Again, thank you for reporting this issue which is not related to storing the sample sizes as double or integer. R function forest.meta()
which is called internally in forest.metabind()
treats the sample sizes as an additional numeric variable and rounds this variable according to argument 'digits.addcols' (which is 2 by default).
I solved this in forest.metabind()
by storing the sample sizes as a character variable: x$data$k <- as.character(x$data$k)
(see https://github.com/guido-s/meta/commit/c6a9bf6cf873cba1c77983f0d036cfdc99a6c046).
Dear Prof. Schwarzer, thank you so much for looking into this in such a short time! That's perfect!
I have noticed that when using
metabind()
it always gives me adouble()
instead of aninteger()
in the column showing the number of studies. I have tried to transform it in the metabind object, but it still doesn't change anything. I wonder if this is an issue inforest()
?reprex:
Created on 2019-10-01 by the reprex package (v0.3.0)