Avoiding: "Error in df[[strata]] <- factor(1) :
object of type 'closure' is not subsettable" in the case where the strata variable is null. df should 'data', I think. And rename strata column name to avoid a name clash.
Many thanks for your work on this. I learned about simPop at the IMA conference this week.
Avoiding: "Error in df[[strata]] <- factor(1) : object of type 'closure' is not subsettable" in the case where the strata variable is null.
df
should 'data', I think. And renamestrata
column name to avoid a name clash.Many thanks for your work on this. I learned about simPop at the IMA conference this week.