search for: examineit

Displaying 1 result from an estimated 1 matches for "examineit".

Did you mean: examine
2010 Mar 11
1
Obtaining name of data frame used in a function argument
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 t...