pkgdown/analytics.html

Skip to contents

Read a GeoPressureTemplate project and populate a GeoLocator Data Package with the resources that can be derived from it.

The import can combine two sources:

  1. "interim": read .RData outputs from data/interim/, convert them to package resources, and store raw parameter objects in pkg$params.

  2. "raw-tag": create tag objects from data/raw-tag/ and config.yml, then derive measurements, tags, observations, and params.

Manual data files take precedence over generated metadata:

  • data/tags.csv or data/tags.xlsx replaces generated tags;

  • data/observations.csv or data/observations.xlsx replaces generated observations.

Files or directories whose names start with "_" are ignored.

See the GeoPressureManual for a full workflow example.

Usage

read_geopressuretemplate(
  directory = ".",
  from = c("raw-tag", "interim"),
  pkg = create_gldp()
)

Arguments

directory

Path to the GeoPressureTemplate directory.

from

Character vector specifying which sources to import. Supported values are "raw-tag" and/or "interim".

pkg

Optional GeoLocator Data Package object to update. Defaults to a new package created with create_gldp().

Value

The updated geolocatordp object.

See also

create_geopressuretemplate() to create a project from a package, params_to_tags(), params_to_observations(), and tags_to_measurements() for the underlying conversions.