search for: testx3

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

Did you mean: testu3
2011 Jul 09
3
Using str() in a function.
...1.5 2.0 2.0 2.5 3.0 # So does this one. > testX2 <- function(X) {return(summary(X)); return(str(X))} > testX2(GG) Min. 1st Qu. Median Mean 3rd Qu. 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 M...