Learn R Programming

Tmisc (version 1.0.1)

read.cb: Read from the clipboard

Description

Read tabular data from the clipboard.

Usage

read.cb(header = TRUE, ...)

Value

A data.frame

Arguments

header

A logical value indicating whether the file contains the names of the variables as its first line. Overrides the default header=FALSE option in read.table().

...

Further arguments to be passed to read.table

Examples

Run this code
if (FALSE) {
# To read CSV data with a header from the clipboard:
read.cb(header=TRUE, sep=',')
}

Run the code above in your browser using DataLab