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))

}

 

examineIt(myDataFrame)

 

I'd like for the function to also output "myDataFrame". Is there any way
to do this? I'm running this function several times in a row and need to
be able to identify which data.frame was analyzed.

 

Thanks!

Jason


	[[alternative HTML version deleted]]

