This question is somewhat related to my previous question
Is there any package which can convert the dput()
output to a dataframe or tibble/tribble? For example:
-
Copy
dput
output to clipboard (Ctrl + C) -
Run through a magic function or addin
-
Paste and get a nicely formatted df or tibble
I have tested datapasta
and overflow
packages but they did not work.
First copy this
structure(list(
mean = c(NA, NA, 1.62, 1.48, 1.43, 1.55, 1.60, 1.63, 1.48, 1.43, 1.43, 1.41, NA),
lower = c(NA, NA, 1.23, 0.95, 1.04, 1.15, 1.01, 1.83, 1.15, 1.04, 1.07, 0.79, NA),
upper = c(NA, NA, 2.14, 2.31, 1.95, 2.09, 2.53, 5.68, 1.91, 1.95, 1.92, 2.54, NA)),
.Names = c("mean", "lower", "upper"),
row.names = c(NA, -13L),
class = "data.frame")
Then run
install_github("mrdwab/overflow-mrdwab")
library(overflow)
soread()
Error in read.table(text = temp, header = header, stringsAsFactors = stringsAsFactors, :
more columns than column names
library(datapasta)
tribble_paste()
Could not paste clipboard as tibble. Text could not be parsed as table.
NULL
df_paste()
Could not paste clipboard as tibble. Text could not be parsed as table.
NULL
Thank you!