Similar to #15 I was getting an error when trying to calculate fertility rates from large surveys.
I saw this commit message and attempted the refactor to use batch_size within the demog_pyears function. I also added the batch_size argument to calc_asfr and calc_tfr.
If you think users are directly using demog_pyears we could add an argument like data.frame=FALSE to preserve the original return format by default?
This was the original error I was getting in my use case.
Error in pyears(formula, data, scale = scale, data.frame = TRUE, weights = weights) :
long vectors (argument 11) are not supported in .C
I tested that this passed the package checks on my local machine
Hi Jeff.
Similar to #15 I was getting an error when trying to calculate fertility rates from large surveys.
I saw this commit message and attempted the refactor to use
batch_size
within thedemog_pyears
function. I also added thebatch_size
argument tocalc_asfr
andcalc_tfr
.If you think users are directly using
demog_pyears
we could add an argument likedata.frame=FALSE
to preserve the original return format by default?This was the original error I was getting in my use case.
I tested that this passed the package checks on my local machine