R/copy_to_xl.R

copy_to_xl <-
function(x) {

# copy to Excel via clipboard
# Jack Simons <jack.simons@state.ma.us>
# Monday July 25, 2011; 22:42:55

# From R Reference Card by Tom Short:
# 	Most of the I/O functions have a file argument. 
# 	This can often be a character string naming a file or a connection.
# 	file="" means the standard input or output. 
# 	Connections can include files, pipes, zipped files, and R variables.
# 	On windows, the file connection can also be used with description = "clipboard".

	write.table(x, "clipboard", sep="\t", col.names=NA)
	}

Try the CANS.works package in your browser

Any scripts or data that you put into this service are public.

CANS.works documentation built on May 2, 2019, 5:17 p.m.