Last active
April 16, 2016 19:59
-
-
Save vikjam/ead0e5e9e8594acfc23bcf7b281ee146 to your computer and use it in GitHub Desktop.
Get data from clipboard in R
This file contains hidden or 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
| get.clip <- function(header = TRUE, stringsAsFactors = FALSE, ...) { | |
| read.table(pipe("pbpaste"), sep = "\t", header = header, stringsAsFactors = stringsAsFactors, ...) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment