Displaying 1 result from an estimated 1 matches for "testx5".
Did you mean:
test65
2011 Jul 09
3
Using str() in a function.
...h 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(X)))}
> testX5(GG)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.0 1.5 2.0 2.0 2.5 3.0
# This does the same as testX4().
> testX6 <- function(X) {return(list(summary(X), (str(X))))}
> testX6(GG)
num [1:3] 1...