print.FormatOccurrence: Print summary information from 'FormatOccurrence' object.

print.FormatOccurrenceR Documentation

Print summary information from FormatOccurrence object.

Description

Display the type and number of training and evaluation dataset in the formatted observations obtained by function format_observation.

Usage

## S3 method for class 'FormatOccurrence'
print(x, ...)

Arguments

x

(FormatOccurrence) A FormatOccurrence object to be messaged. It could be the return of function format_observation.

...

Not used.

Value

The same object that was passed as input.

See Also

format_observation

Examples


library(dplyr)
library(itsdm)
data("occ_virtual_species")

# obs + eval, presence-absence
obs_df <- occ_virtual_species %>% filter(usage == "train")
eval_df <- occ_virtual_species %>% filter(usage == "eval")
x_col <- "x"
y_col <- "y"
obs_col <- "observation"
obs_type <- "presence_absence"

obs_formatted <- format_observation(
  obs_df = obs_df, eval_df = eval_df,
  x_col = x_col, y_col = y_col, obs_col = obs_col,
  obs_type = obs_type)

print(obs_formatted)



itsdm documentation built on July 9, 2023, 6:45 p.m.