Learn R Programming

MESS (version 0.5.12)

clipit: Copy an object as R-code to the clipboard

Description

Copies an R object to the clipboard so it can be pasted in elsewhere.

Usage

clipit(x)

Value

Nothing but will put the R object into the clipboard as a side effect

Arguments

x

object to copy

Author

Jonas LindeLøv posted on twitter. Copied shamelessly by Claus Ekstrom claus@rprimer.dk

Details

Returns nothing but will place the object in the clipboard

Examples

Run this code

if (FALSE) {
clipit(mtcars$mpg)
}

Run the code above in your browser using DataLab