Try this:
foo <- function(data)print(deparse(substitute(data)))
foo(DF)
On Thu, Mar 11, 2010 at 2:31 PM, Jason Baucom wrote:
> I'm writing a function that can take a data.frame as an argument. I'd
> like to be able to obtain the name of the data.frame and print it out
> within the function. My c
I'm writing a function that can take a data.frame as an argument. I'd
like to be able to obtain the name of the data.frame and print it out
within the function. My current function looks like this:
examineIt<-function(x) {
print(nrow(x))
print(x[ceiling(runif(10)*nrow(x)),])
print(summary(x)
2 matches
Mail list logo