z test on RMarkdown

Can you post code, not a screenshot? This includes an example of the Babies dataset.