Print the ge_stats object in two ways. By default, the results are shown in the R console. The results can also be exported to the directory into a *.txt file.

# S3 method for ge_stats
print(x, what = "all", export = FALSE, file.name = NULL, digits = 3, ...)

Arguments

x

An object of class ge_stats.

what

What should be printed. what = "all" for both statistics and ranks, what = "stats" for statistics, and what = "ranks" for ranks.

export

A logical argument. If TRUE, a *.txt file is exported to the working directory.

file.name

The name of the file if export = TRUE

digits

The significant digits to be shown.

...

Options used by the tibble package to format the output. See tibble::print() for more details.

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

# \donttest{ library(metan) model <- ge_stats(data_ge, ENV, GEN, REP, GY) print(model)
#> Variable GY #> --------------------------------------------------------------------------- #> Stability statistics and ranks #> --------------------------------------------------------------------------- #> # A tibble: 10 x 62 #> GEN Y Y_R CV CV_R Var Var_R Shukla Shukla_R Wi_g Wi_g_R Wi_f #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 G1 2.60 6 35.2 8 10.9 7 0.0280 2 84.4 4 89.2 #> 2 G10 2.47 10 42.3 9 14.2 9 0.244 10 59.2 10 64.6 #> 3 G2 2.74 3 34.0 7 11.3 8 0.0861 7 82.8 7 95.3 #> 4 G3 2.96 2 29.9 3 10.1 5 0.0121 1 104. 1 99.7 #> 5 G4 2.64 5 31.4 6 8.93 4 0.0640 5 85.9 3 79.5 #> 6 G5 2.54 7 30.6 5 7.82 3 0.0480 4 82.7 8 82.2 #> 7 G6 2.53 8 29.7 2 7.34 2 0.0468 3 83.0 6 83.7 #> 8 G7 2.74 4 27.4 1 7.33 1 0.122 8 83.9 5 77.6 #> 9 G8 3.00 1 30.4 4 10.8 6 0.0712 6 98.8 2 90.5 #> 10 G9 2.51 9 42.4 10 14.7 10 0.167 9 68.8 9 68.9 #> # ... with 50 more variables: Wi_f_R <dbl>, Wi_u <dbl>, Wi_u_R <dbl>, #> # Ecoval <dbl>, Ecoval_R <dbl>, bij <dbl>, Sij <dbl>, Sij_R <dbl>, R2 <dbl>, #> # R2_R <dbl>, ASV <dbl>, ASV_R <dbl>, SIPC <dbl>, SIPC_R <dbl>, EV <dbl>, #> # EV_R <dbl>, ZA <dbl>, ZA_R <dbl>, WAAS <dbl>, WAAS_R <dbl>, HMGV <dbl>, #> # HMGV_R <dbl>, RPGV <dbl>, RPGV_R <dbl>, HMRPGV <dbl>, HMRPGV_R <dbl>, #> # Pi_a <dbl>, Pi_a_R <dbl>, Pi_f <dbl>, Pi_f_R <dbl>, Pi_u <dbl>, #> # Pi_u_R <dbl>, Gai <dbl>, Gai_R <dbl>, S1 <dbl>, S1_R <dbl>, S2 <dbl>, #> # S2_R <dbl>, S3 <dbl>, S3_R <dbl>, S6 <dbl>, S6_R <dbl>, N1 <dbl>, #> # N1_R <dbl>, N2 <dbl>, N2_R <dbl>, N3 <dbl>, N3_R <dbl>, N4 <dbl>, #> # N4_R <dbl> #> --------------------------------------------------------------------------- #> #> #>
# }