Skip to contents

Print the Thennarasu 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.

Usage

# S3 method for Thennarasu
print(x, export = FALSE, file.name = NULL, digits = 3, ...)

Arguments

x

An object of class Thennarasu.

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 <- Thennarasu(data_ge2, ENV, GEN, PH)
#> Evaluating trait PH |============================================| 100% 00:00:00 

print(model)
#> Variable PH 
#> ---------------------------------------------------------------------------
#> Thennarasu's stability indexes
#> ---------------------------------------------------------------------------
#> # A tibble: 13 × 11
#>    GEN       Y   Y_R    N1  N1_R    N2  N2_R    N3  N3_R     N4  N4_R
#>    <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>  <dbl> <dbl>
#>  1 H1     2.62     1  2.75   8   0.917    13 0.750    10 0.0351   5  
#>  2 H10    2.31    13  1.75   2   0.146     1 0.237     1 0        1.5
#>  3 H11    2.39    10  1.75   2   0.219     3 0.299     2 0.092   11  
#>  4 H12    2.44     8  3.75  12   0.417     8 0.495     9 0.0417   6  
#>  5 H13    2.54     7  3.25  10.5 0.591    10 0.779    11 0.2     13  
#>  6 H2     2.60     2  3      9   0.6      11 0.825    13 0.0667   8.5
#>  7 H3     2.59     3  4.75  13   0.731    12 0.811    12 0        1.5
#>  8 H4     2.58     4  2.25   5.5 0.5       9 0.470     8 0.0909  10  
#>  9 H5     2.57     5  1.75   2   0.35      7 0.409     6 0.167   12  
#> 10 H6     2.56     6  2.5    7   0.333     6 0.383     4 0.0667   8.5
#> 11 H7     2.40     9  2      4   0.267     4 0.402     5 0.023    3  
#> 12 H8     2.33    12  3.25  10.5 0.310     5 0.460     7 0.0333   4  
#> 13 H9     2.36    11  2.25   5.5 0.214     2 0.363     3 0.0556   7  
#> ---------------------------------------------------------------------------
#> 
#> 
# }