To complete the previous answer, know that there are some useful tool online to help create markdown table like
https://www.tablesgenerator.com/markdown_tables
With R a reprex can be enough. You can also let knitr create the markdown table using knitr::kable. It should work inside a reprex too. Good for formatting result but not so good for someone else to copy and replay your code if help needed.