Guest User

Untitled

a guest
Oct 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #' cp
  2. #'
  3. #' copy a vector or data.frame to the clipboard
  4. #'
  5. #' @param .data vector or data.frame
  6. #' @param sep character field separator string
  7. #' @param max.size dimensions of file, eg. 200 columns by 10000 rows is 2000000
  8. #'
  9. #' @export
  10. #'
  11. cp <- function(.data, sep="|", max.size=(200*10000), ...){
  12.  
  13. write.table(.data,
  14. paste0("clipboard-", format(max.size, scientific = F)),
  15. sep=sep,
  16. row.names=FALSE,
  17. ...
  18. )
  19.  
  20. }
Add Comment
Please, Sign In to add comment