When trying to wirte a caption and using position arguments, these are ignored when applied to an mytable object.
Example:
This works as expected and prints caption and positions table to the left:
options(ztable.type="html")
tb4 <- t(round(rbind(table(eco$p2_described), prop.table(table(eco$p2_described))*100),2))
ztable(tb4, caption="Parent 2 - described economy", position="l")
This does not print any caption or respects positioning:
options(ztable.type="html")
ztable(mytable(youth_described~p1_hhincome, data=eco), caption="test", position="l")