I am aware of the syntax to create a table on Stack Overflow, but is there any function that takes a dataframe as argument and that copies the table to the clipboard, so that it can be pasted on Stack Overflow?
# Any function that takes a dataframe as an argument
# and that copies the table to the clipboard
table_to_clipboard(df) # ???
# Then I could paste the result (Ctrl + V)
| Heading 1 | Heading 2 |
|---------------------|------------------|
| 12 | 34 |
| 99 | 42 |
| Heading 1 | Heading 2 |
|---|---|
| 12 | 34 |
| 99 | 42 |