clipped: Dump clipboard contents into R; especially from Excel...

Description Usage Arguments Details Author(s) See Also Examples

View source: R/clipped.R

Description

Useful shortcut for reading objects from your clipboard.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
clipped(
  header = TRUE,
  sep = "\t",
  na.strings = c("", "NA"),
  check.names = FALSE,
  stringsAsFactors = F,
  dec = ".",
  as.data.table = TRUE,
  remove.spaces = TRUE,
  ...
)

Arguments

lowercase

Converts column names to lower case

removedot

Removes .'s from column names

Details

Only works in Windows. Puts everything in a data.frame, uses stringsAsFactors=FALSE

Author(s)

Gene Leynes

See Also

clipboard,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	## Not run: 

     require(geneorama)

	## Copy a range of cells in Excel (or whatever) then assign the data
	## to "clipped_example"
	clipped_example <- clipped()

	## View the result in R
	print(clipped_example)
	str(clipped_example)
	
## End(Not run)

## New version based on:
## https://stackoverflow.com/questions/10959521/how-to-write-to-clipboard-on-ubuntu-linux-in-r

geneorama/geneorama documentation built on Oct. 17, 2020, 12:35 a.m.