Learn R Programming

aridagri (version 2.0.3)

export_results: Export Results to Publication Format

Description

Exports aridagri analysis results to Excel format for publication.

Usage

export_results(x, file, format = "xlsx", digits = 3, verbose = TRUE)

Value

Invisibly returns the file path

Arguments

x

An object from aridagri analysis functions

file

Output file path

format

Output format: "xlsx"

digits

Number of decimal places

verbose

Logical. If TRUE (default), prints formatted output to console.

Author

Lalit Kumar Rolaniya, Ram Lal Jat, Monika Punia, Raja Ram Choudhary

Examples

Run this code
# \donttest{
df <- data.frame(
  yield = c(1200, 1350, 1100, 1450, 1280),
  wue = c(4.2, 4.8, 3.9, 5.1, 4.5)
)
result <- correlation_analysis(df, plot = FALSE)
export_results(result, tempfile(fileext = ".xlsx"))
# }

Run the code above in your browser using DataLab