Skip to content
Prev 363538 / 398502 Next

function that converts data into a form that can be included in a question to mailing list

dump("yourObject", file=stdout()) is, IMO, a bit nicer than plain
dput(yourObject).  It makes copying and pasting even easier by putting
"yourObject <-" in front of dput()'s output so readers don't have to type
that themselves.

E.g.,
myData <-
structure(list(X = 1:2, Y = c(2.71828182845905, 3.14159265358979
)), .Names = c("X", "Y"), row.names = c(NA, -2L), class = "data.frame")
structure(list(X = 1:2, Y = c(2.71828182845905, 3.14159265358979
)), .Names = c("X", "Y"), row.names = c(NA, -2L), class = "data.frame")




Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Wed, Aug 24, 2016 at 3:12 PM, John Sorkin <jsorkin at grecc.umaryland.edu>
wrote: