Skip to content
Back to formatted view

Raw Message

Message-ID: <2306525A-E7E5-42A1-8C21-E180977207C8@comcast.net>
Date: 2013-02-12T22:57:06Z
From: David Winsemius
Subject: Write a dataframe or table to clipboard as an image to paste into an email
In-Reply-To: <56180B40A4F72A4083C75B30DA862973200714FD@PRDEXMBX-05.the-lab.llnl.gov>

On Feb 12, 2013, at 2:51 PM, Lopez, Dan wrote:

> Hi,
> 
> Is there a way to write a dataframe or table  to the clipboard as an image? I want to paste into an email. I use snagit or print screen to do this today but want to know if there is a way to do this through R.
> 
> For example I know how to write to clipboard for copy and pasting into Excel:
>> write.table(df,"clipboard",sep="\t"
> 
> But what's the equivalent for .png or other image format? I can't seem to find it in the help file.
> 
> Note: I also tried using png()...print(df)...device.off() which I normally use for plots but doesn't seem to work for dataframes and tables

The latex function in Hmisc will produce dvi output that can be then samed as pdf.

-- 
David Winsemius
Alameda, CA, USA