Learn R Programming

Xmisc (version 0.2.1)

printme: Print the name and the content of an R object

Description

Print the name and the content of an R object

Usage

printme(x = NULL, prefix = NULL, envir = sys.frame(sys.parent(0)))

Arguments

x
ANY, an R object.
prefix
the prefix to print.
envir
the environment to use.

See Also

logme

Examples

Run this code
## 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)

Run the code above in your browser using DataLab