Print the anova_ind 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 anova_ind
print(x, export = FALSE, file.name = NULL, digits = 3, ...)

Arguments

x

An object of class anova_ind.

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 <- data_ge %>% anova_ind(ENV, GEN, REP, c(GY, HM)) print(model)
#> Variable GY #> --------------------------------------------------------------------------- #> Within-environment ANOVA results #> --------------------------------------------------------------------------- #> # A tibble: 14 x 12 #> ENV MEAN MSG FCG PFG MSB FCB PFB MSE CV h2 #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 E1 2.52 0.337 2.34 5.94e-2 0.0652 0.453 6.43e-1 0.144 15.1 0.573 #> 2 E10 2.18 0.296 11.1 1.10e-5 0.654 24.5 7.28e-6 0.0267 7.51 0.910 #> 3 E11 1.37 0.151 1.44 2.44e-1 0.377 3.59 4.86e-2 0.105 23.7 0.304 #> 4 E12 1.61 0.320 5.98 6.47e-4 0.0919 1.72 2.08e-1 0.0535 14.4 0.833 #> 5 E13 2.91 0.713 7.18 2.10e-4 0.0767 0.772 4.77e-1 0.0994 10.8 0.861 #> 6 E14 1.78 0.131 1.73 1.53e-1 0.104 1.37 2.78e-1 0.0753 15.4 0.423 #> 7 E2 3.18 0.207 1.16 3.76e-1 0.698 3.91 3.88e-2 0.179 13.3 0.136 #> 8 E3 4.06 0.335 1.87 1.23e-1 0.489 2.73 9.21e-2 0.179 10.4 0.466 #> 9 E4 3.68 0.531 3.86 7.12e-3 0.116 0.846 4.46e-1 0.138 10.1 0.741 #> 10 E5 3.91 0.526 7.93 1.10e-4 0.219 3.30 6.02e-2 0.0664 6.59 0.874 #> 11 E6 2.66 0.135 2.30 6.35e-2 0.160 2.73 9.22e-2 0.0586 9.09 0.565 #> 12 E7 1.99 0.337 3.70 8.73e-3 0.381 4.19 3.22e-2 0.0910 15.2 0.730 #> 13 E8 2.54 0.215 7.72 1.31e-4 0.817 29.4 2.15e-6 0.0278 6.57 0.870 #> 14 E9 3.06 0.679 6.12 5.62e-4 0.583 5.25 1.60e-2 0.111 10.9 0.837 #> # ... with 1 more variable: AS <dbl> #> --------------------------------------------------------------------------- #> #> #> #> Variable HM #> --------------------------------------------------------------------------- #> Within-environment ANOVA results #> --------------------------------------------------------------------------- #> # A tibble: 14 x 12 #> ENV MEAN MSG FCG PFG MSB FCB PFB MSE CV h2 #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 E1 47.4 5.22 2.82 2.93e-2 3.11 1.68 2.15e-1 1.85 2.87 0.645 #> 2 E10 44.3 28.8 13.2 3.02e-6 9.1 4.19 3.22e-2 2.17 3.33 0.924 #> 3 E11 54.2 6.06 1.96 1.07e-1 2.81 0.910 4.20e-1 3.09 3.24 0.490 #> 4 E12 49.6 10.4 1.96 1.08e-1 2.77 0.520 6.03e-1 5.32 4.65 0.489 #> 5 E13 46.6 13.9 10.3 1.80e-5 25.5 19.0 3.71e-5 1.34 2.49 0.903 #> 6 E14 41.0 5.28 4.34 3.93e-3 10.0 8.23 2.89e-3 1.22 2.69 0.769 #> 7 E2 44.1 13.2 4.32 4.02e-3 6.70 2.20 1.40e-1 3.05 3.96 0.768 #> 8 E3 52.9 8.00 2.88 2.69e-2 7.3 2.62 1.00e-1 2.78 3.15 0.652 #> 9 E4 50 7.93 6.35 4.51e-4 2.10 1.68 2.14e-1 1.25 2.23 0.843 #> 10 E5 52.2 11.8 1.86 1.26e-1 6.86 1.08 3.62e-1 6.37 4.83 0.462 #> 11 E6 45.9 15.8 7.46 1.63e-4 12.9 6.06 9.71e-3 2.12 3.17 0.866 #> 12 E7 48.5 5.00 1.05 4.38e-1 0.705 0.149 8.63e-1 4.74 4.49 0.0518 #> 13 E8 45.2 11.6 5.34 1.27e-3 12.0 5.51 1.36e-2 2.17 3.26 0.813 #> 14 E9 51.3 9.33 4.08 5.41e-3 5.73 2.50 1.10e-1 2.29 2.95 0.755 #> # ... with 1 more variable: AS <dbl> #> --------------------------------------------------------------------------- #> #> #>
# }