Skip to content
Prev 263844 / 398502 Next

Add use of dput() to the instructions at bottom of post?

On Jun 27, 2011, at 9:44 AM, Ivan Calandra wrote:

            
The Posting Guide has an equivalent method it suggests. It has the  
trivial advantantage of being truly cut-and-pastable but the  
disadvantage (relative to dput) that it requires the object to be  
quoted and the file argument to be specified.

 > dump("param", file="")
param <-
structure(list(pi = c(0.5552, 0.2739, 0.1709), mu = c(-0.4868,
8.3846, 12.5317), sigma = c(2.044, 1.399, 1.036)), .Names = c("pi",
"mu", "sigma"), class = "data.frame", row.names = c("1", "2",
"3"))