Created
September 4, 2019 03:28
-
-
Save pgstevenson/e22053b7cdb5935f25e6fe6716fad449 to your computer and use it in GitHub Desktop.
Function to copy data from R to the clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy_clip <- function(x, row.names = FALSE, col.names = TRUE, ...) { | |
write.table(x, "clipboard", sep = "\t", row.names = row.names, col.names = col.names, ...) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment