| dput2 | R Documentation |
This function wraps around the dput function and provide more options to save result in a vector
dput2(x, comment = FALSE, obj = NULL, collapse = NULL, ...)
x |
An object passed to |
comment |
logical indicating if comment characters should be prepended to results |
obj |
character of length one indicating the name of the object that should be prepended to result |
collapse |
character of length one with the collapse character. If provided the result will be pasted with this collapse character |
... |
additional arguments passed to dput |
a vector with the result from dput
Richard Hooijmaijers
dput2(setNames(runif(5),letters[1:5]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.