Skip to content

Instantly share code, notes, and snippets.

@mages
Created January 11, 2018 21:41
Show Gist options
  • Save mages/128a64e5584a9b579523c8ddf2e8d657 to your computer and use it in GitHub Desktop.
Save mages/128a64e5584a9b579523c8ddf2e8d657 to your computer and use it in GitHub Desktop.
Mac: Copy R data frame to clipboard
snip <- function(input) {
pb <- pipe("pbcopy", "w")
write.table(input, sep="\t", file=pb, row.names = FALSE)
close(pb)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment