powered by
This function transforms its argument to HTML and then copy it to the clipboard or to a file for later use in an external application.
clipcopy(obj, ...)# S3 method for default clipcopy(obj, append = FALSE, file = FALSE, filename = "temp.html", clipboard.size = 4096, ...)# S3 method for proptab clipcopy(obj, percent = NULL, digits = NULL, justify = "right", ...)
# S3 method for default clipcopy(obj, append = FALSE, file = FALSE, filename = "temp.html", clipboard.size = 4096, ...)
# S3 method for proptab clipcopy(obj, percent = NULL, digits = NULL, justify = "right", ...)
object to be copied
arguments passed to R2HTML::HTML
R2HTML::HTML
if TRUE, append to the file instead of replacing it
if TRUE, export to a file instead of the clipboard
name of the file to export to
under Windows, size of the clipboard in kB
whether to add a percent sign in each cell
number of digits to display
justification
NULL
Under linux, this function requires that xclip is installed on the system to copy to the clipboard.
xclip
HTML, format.proptab
HTML
format.proptab
clipcopy, format.proptab
clipcopy
# NOT RUN { data(iris) tab <- table(cut(iris$Sepal.Length,8),cut(iris$Sepal.Width,4)) # } # NOT RUN { copie(tab) # } # NOT RUN { ptab <- rprop(tab, percent=TRUE) # } # NOT RUN { clipcopy(ptab) # }
Run the code above in your browser using DataLab