search for: testx4

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

Did you mean: test4
2011 Jul 09
3
Using str() in a function.
...Max. 1.0 1.5 2.0 2.0 2.5 3.0 # On the other hand, this one ignores the summary() > testX3 <- function(X) {summary(X); return(str(X))} > testX3(GG) num [1:3] 1 2 3 # This one displays both, in reverse order, with a superfluous (to my intentions) [[NULL]]. > testX4 <- function(X) {list(summary(X), (str(X)))} > testX4(GG) num [1:3] 1 2 3 [[1]] Min. 1st Qu. Median Mean 3rd Qu. Max. 1.0 1.5 2.0 2.0 2.5 3.0 [[2]] NULL # Now we are back to ignoring the str(). > testX5 <- function(X) {list(return(summary(X)), (str(...