Learn R Programming

BORG (version 0.2.5)

summary.borg_result: Summarize BORG Result

Description

Generate a methods section summary for publication from a borg_result object.

Usage

# S3 method for borg_result
summary(
  object,
  comparison = NULL,
  v = 5,
  style = c("apa", "nature", "ecology"),
  include_citation = TRUE,
  ...
)

Value

Character string with methods text (invisibly).

Arguments

object

A borg_result object from borg().

comparison

Optional. A borg_comparison object.

v

Integer. Number of CV folds. Default: 5.

style

Character. Citation style.

include_citation

Logical. Include BORG citation.

...

Additional arguments (currently unused).

Examples

Run this code
set.seed(42)
data <- data.frame(
  x = runif(100, 0, 100),
  y = runif(100, 0, 100),
  response = rnorm(100)
)
result <- borg(data, coords = c("x", "y"), target = "response")
summary(result)

Run the code above in your browser using DataLab