Description Usage Arguments Author(s) See Also Examples
Print the name and the content of an R object
1 | printme(x = NULL, prefix = NULL, envir = sys.frame(sys.parent(0)))
|
x |
ANY, an R object. |
prefix |
the prefix to print. |
envir |
the |
Xiaobei Zhao
1 2 3 4 5 6 7 8 9 10 | ## print an object
x1 <- 1:6
printme(x1)
## print with a prefix
foo <- function(x,envir=sys.frame(sys.parent(0))){
printme(x,match.call(),envir=envir)
invisible()
}
foo(1:6)
|
Attaching package: 'Xmisc'
The following object is masked from 'package:base':
dir.exists
## x1 ##
[1] 1 2 3 4 5 6
## foo | 1:6 ##
[1] 1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.