Learn R Programming

SciViews (version 0.8-8)

clippaste: Paste the content of the clipboard into an variable

Description

Create a new object by pasting the content of the clipboard in it. Contents generated with copy are recognized.

Usage

clippaste(name = "newobj", type = "ascii", objclass = "data.frame", pos = 1, ...)

Arguments

name
The name of the variable to create
type
Specify the type of content (the format of the object currently in the clipboard)
objclass
The class of the object to create
pos
Where to place the new object (by default, in the global workspace)
...
Further arguments passed to the specific paste method

Value

  • The result returned by the specific paste method.

See Also

copy

Examples

Run this code
# A trivial example... but that becomes more interesting if the copy
        # and paste operations are made in different R instances
        data(iris)
        copy(iris, type = "ascii")
        clippaste(iris2)

Run the code above in your browser using DataLab