save_set_of_conversions: Saving Set of Conversions

View source: R/UnitsAndConversions.R

save_set_of_conversionsR Documentation

Saving Set of Conversions

Description

Save a single type of conversion factor into the conversion factor database

Usage

save_set_of_conversions(
  database = "rhomis",
  url = "mongodb://localhost",
  projectID = "core_unit",
  formID = "core_unit",
  conversions,
  conversion_type,
  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

conversions

A table of the conversion factors to be used

conversion_type

Which type 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

Details

Rpackage file: UnitsAndConversions.R


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