twilight_label_write: Write a twilight label file

View source: R/twilight_label_write.R

twilight_label_writeR Documentation

Write a twilight label file

Description

This function writes the csv file of the labelled twilight which can be read with TRAINSET https://trainset.raphaelnussbaumer.com/.

Usage

twilight_label_write(
  tag,
  file = glue::glue("./data/twilight-label/{tag$param$id}.csv"),
  quiet = FALSE
)

Arguments

tag

a GeoPressureR tag object

file

Name of the twilight label file to be saved.

quiet

logical to hide messages

Value

None

See Also

Other geolight: geolight_map(), twilight_create(), twilight_label_read()

Examples

withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
  tag <- tag_create("18LX", quiet = TRUE) |>
    tag_label(quiet = TRUE) |>
    twilight_create()

  label_file <- twilight_label_write(tag)

  str(read.csv(label_file))
})

Rafnuss/GeoPressureR documentation built on April 17, 2025, 12:58 p.m.