Skip to content

Instantly share code, notes, and snippets.

@vikjam
Last active April 16, 2016 19:59
Show Gist options
  • Save vikjam/ead0e5e9e8594acfc23bcf7b281ee146 to your computer and use it in GitHub Desktop.
Save vikjam/ead0e5e9e8594acfc23bcf7b281ee146 to your computer and use it in GitHub Desktop.
Get data from clipboard in R
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