Description Usage Arguments See Also Examples
Data types are double, integer, numeric, and character. All factors are converted to character before the dataframe is returned. If header is false, the dataframe is returned with all the rows and column names in the pattern "Vindex," where "index" is the position of the column.
1 | read_clipboard(header = TRUE, log = "DEPRECATED", log_details = "")
|
header |
True if data has a header. |
log |
(Deprecated) Log this function call to a log.md file? |
log_details |
(Deprecated) If log is TRUE, additional notes to include with the log entry. |
Other clipboard functions:
copy_cb()
,
copy_to_clipboard()
,
read_cb_hl()
,
read_cb_trbl()
,
read_cb()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | library(tidyverse)
# Test Data
test_data <-
tibble(A = 1:3,
B = c("Apples", "Bananas", "Oranges"),
C = factor(c("Apples", "Bananas", "Oranges")),
D = runif(3))
# Copy to Clipboard
copy_cb(data = test_data)
# Read Clipboard
read_cb()
# Check Datatypes
sapply(test_data, FUN = class)
sapply(read_cb(), FUN = class) # `read_cb()` function mutates all factors to character before returning
# Read Clipboard Shortcut for Headerless Data
read_cb_hl()
# Read Clipboard as a Tribble for Copy and Paste
read_cb_trbl()
read_cb_trbl(header = FALSE)
read_cb_trbl(quote = "'")
read_cb_trbl(header = FALSE, quote = "'")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.