On my question, the very last code snippets ends with the triple backticks "```".
The same exact code snippet on StackOverflow does NOT end with the triple backticks (I thought I erred with the Markdown code somehow and tried to post on StackOverflow). Those backticks are only visible on CrossValidated and here.
Maybe some Markdown misconfiguration on this side?
Here is the code snippet:
> table(df$y, df$gender) 0 1 0 194276 88007 1 995 237