print.FormatOccurrence | R Documentation |
FormatOccurrence
object.Display the type and number of training and evaluation dataset
in the formatted observations obtained by
function format_observation
.
## S3 method for class 'FormatOccurrence'
print(x, ...)
x |
( |
... |
Not used. |
The same object that was passed as input.
format_observation
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.