Import data from clipboard in RStudio

Copy your data, use the snippet below. Ready.

df <- read.table(pipe("pbpaste"), sep="\t", header=T)