Learn R Programming

metan (version 1.19.0)

print.mgidi: Print an object of class mgidi Print a mgidi object in two ways. By default, the results are shown in the R console. The results can also be exported to the directory.

Description

Print an object of class mgidi Print a mgidi object in two ways. By default, the results are shown in the R console. The results can also be exported to the directory.

Usage

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

Arguments

x

An object of class mgidi.

export

A logical argument. If TRUE|T, 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

Run this code
# \donttest{
library(metan)
model <- gamem(data_g,
               gen = GEN,
               rep = REP,
               resp = c(KW, NR, NKE, NKR))
mgidi_index <- mgidi(model)
print(mgidi_index)
# }

Run the code above in your browser using DataLab