|
- % Generated by roxygen2: do not edit by hand
- % Please edit documentation in R/metadata.R
- \name{populate_ont}
- \alias{populate_ont}
- \title{Populate an empty ontology table}
- \usage{
- populate_ont(ont, modi = NULL, scheme, include_code = T,
- def_facttablecolumn = "concept_cd", def_tablename = "concept_dimension",
- def_columnname = "concept_path", def_columndatatype = "T",
- def_operator = "LIKE", host = "", admin = "", pass = "")
- }
- \arguments{
- \item{ont}{The ontology to insert}
-
- \item{modi}{The modifiers to insert}
-
- \item{scheme}{The scheme to use for this ontology}
-
- \item{include_code}{Whether to include the code in the label or not}
-
- \item{def_facttablecolumn}{Default value for that column}
-
- \item{def_tablename}{Default value for that column}
-
- \item{def_columnname}{Default value for that column}
-
- \item{def_columndatatype}{Default value for that column}
-
- \item{def_operator}{Default value for that column}
-
- \item{host}{The host to connect to}
-
- \item{admin}{The admin account for the PostgreSQL database}
-
- \item{pass}{the password for the admin account}
- }
- \description{
- Populate an empty ontology table
- }
- \details{
- Populate an ontology table
- ont is a dataframe containing at least the c_fullname column, a character vector containing all the leaves of the ontology
- with their respective path, in the form
- code_level1 label_level1\\code_level2 label_level2\\...\\code_leaf label_leaf
- The function rebuilds the folders automatically
-
- modi is a dataframe containing at least the c_fullname column, a character vector containing the modifiers, in the form
- code_modi label_modi
- The modifiers apply on all the ontology
- }
|