clipcopy | R Documentation |
This function transforms its argument to HTML with knitr::kable and then copy it to the clipboard or to a file for later use in an external application.
clipcopy(obj, ...) ## Default S3 method: clipcopy( obj, append = FALSE, file = FALSE, filename = "temp.html", clipboard.size = 4096, ... ) ## S3 method for class 'proptab' clipcopy(obj, percent = NULL, digits = NULL, justify = "right", ...)
obj |
object to be copied |
... |
arguments passed to |
append |
if TRUE, append to the file instead of replacing it |
file |
if TRUE, export to a file instead of the clipboard |
filename |
name of the file to export to |
clipboard.size |
under Windows, size of the clipboard in kB |
percent |
whether to add a percent sign in each cell |
digits |
number of digits to display |
justify |
justification |
Under Linux, this function requires that xclip
is
installed on the system to copy to the clipboard.
NULL
NULL
kable
, format.proptab
clipcopy
, format.proptab
data(iris) tab <- table(cut(iris$Sepal.Length, 8), cut(iris$Sepal.Width, 4)) ## Not run: copie(tab) ## End(Not run) ptab <- rprop(tab, percent = TRUE) ## Not run: clipcopy(ptab) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.