Data Science Desktop Survival Guide
by Graham Williams |
|||||
Clipboard Data |
library(readr) # Modern and efficient data reader.
ds <- read_csv(clipboard(), col_names=FALSE) ds
Using base R a similar approach is available with the special string clipboard as the first argument in utils::read.table(), for example. This generally only works on Linux with X11. |
ds <- read.table("clipboard")
|