Displaying 1 result from an estimated 1 matches for "testx6".
Did you mean:
test46
2011 Jul 09
3
Using str() in a function.
...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 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
I tried a bunch more, using the print command, etc., but nothng I tried
resulted in the output...