ForIT_DataBase: 'ForIT'-package Database - Ver.2

Description Usage Format Details

Description

The package exposes 5 tightly interconnected tibbles:
INFCspecies, INFCcatalog, Quantities, INFCparam, INFCf_domains Figure: ForIT-DBschema
Tables columns
INFCspecies

INFCcatalog

Quantities

INFCparam

INFCf_domains

Usage

1
2
3
4
5
6
7
8
9

Format

An object of class tbl_df (inherits from tbl, data.frame) with 44 rows and 3 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 26 rows and 4 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 5 rows and 2 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 130 rows and 5 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 617 rows and 4 columns.

Details

Columns bm and vcm are lists, the dimensions of the arrays and matrices they store vary depending on n_par.
Matrices in vcm are symmetric, stored as "dspMatrix" class objects.
Database schema is defined, verivied and illustrated using package dm

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library(dm)
ForIT_DB <- dm(INFCcatalog,
               INFCspecies,
               Quantities,
               INFCparam,
               INFCf_domains) %>%
  dm_add_pk(INFCcatalog, pag, check = TRUE) %>%

  dm_add_pk(INFCspecies, EPPOcode, check = TRUE) %>%
  dm_add_fk(INFCspecies, pag, INFCcatalog, check = TRUE) %>%

  dm_add_pk(Quantities, quantity, check = TRUE) %>%

  dm_add_pk(INFCparam, c(pag, quantity), check = TRUE) %>%
  dm_add_fk(INFCparam, pag, INFCcatalog, check = TRUE) %>%
  dm_add_fk(INFCparam, quantity, Quantities, check = TRUE) %>%

  dm_add_pk(INFCf_domains, c(pag, htot.m), check = TRUE) %>%
  dm_add_fk(INFCf_domains, pag, INFCcatalog, check = TRUE)

dm_examine_constraints(ForIT_DB)

dm_draw(ForIT_DB, rankdir = "BT", view_type = "all", column_types = T)

npuletti/ForIT documentation built on Dec. 29, 2021, 7:50 a.m.