powered by
copyToClipboard is a utility function that copies data to the clipboard. The data can then be copied in another program like excel.
copyToClipboard
copyToClipboard(x, ...)# S3 method for antaresDataList copyToClipboard(x, what, ...)
# S3 method for antaresDataList copyToClipboard(x, what, ...)
The function does not return anything. It is only used to interact with the clipboard
an object used to select a method.
arguments passed to write.table
write.table
character or numeric indicating which element to copy to clipboard (areas, links, clusters or districts)
# This only works on Windows systems if (FALSE) { x <- data.frame(a = sample(10), b = sample(10)) copyToClipboard(x) # Try to open excel and use CTRL + V to copy the data in a spreadsheet. }
Run the code above in your browser using DataLab