save_multiple_conversions: Save Multiple conversions

View source: R/UnitsAndConversions.R

save_multiple_conversionsR Documentation

Save Multiple conversions

Description

Rpackage file: UnitsAndConversions.R

Usage

save_multiple_conversions(
  database = "rhomis",
  url = "mongodb://localhost",
  projectID = "core_units",
  formID = "core_units",
  conversion_data,
  conversion_types,
  collection,
  converted_values = F
)

Arguments

database

The database which will store the units

url

The url of the database storing the units

projectID

The name of the project the units are related to

formID

The name of the form the projects are related to

conversion_data

A list of tibbles of the conversion factors to be used

conversion_types

Which types of conversion is being saves (e.g crop yield, PPI, HDDS etc...)

collection

The mongodb collection to save the units

converted_values

Whether saving values which user has already converted


l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.