Learn R Programming

fgeo.analyze (version 1.1.14)

summary.tt_df: Summary of tt_test() results.

Description

Summary of tt_test() results.

Usage

# S3 method for tt_df
summary(object, ...)

# S3 method for tt_lst summary(object, ...)

Arguments

object

An object of class "tt_df" or "tt_lst".

...

Not used (included only for compatibility with summary).

Value

A tibble.

See Also

tt_test(), base::summary().

Examples

Run this code
# NOT RUN {
assert_is_installed("fgeo.x")

tt_result <- tt_test(fgeo.x::tree6_3species, fgeo.x::habitat)

summary(tt_result)

# Same
summary(as_tibble(tt_result))

# You may want to add the explanation to the result of `tt_test()`

dplyr::left_join(as_tibble(tt_result), summary(tt_result))

# You may prefer a wide matrix
Reduce(rbind, tt_result)

# You may prefer a wide dataframe
tidyr::spread(summary(tt_result), "habitat", "association")
# }

Run the code above in your browser using DataLab