You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/metadata.R
  3. \name{populate_ont}
  4. \alias{populate_ont}
  5. \title{Populate an empty ontology table}
  6. \usage{
  7. populate_ont(ont, modi = NULL, scheme, include_code = T,
  8. def_facttablecolumn = "concept_cd", def_tablename = "concept_dimension",
  9. def_columnname = "concept_path", def_columndatatype = "T",
  10. def_operator = "LIKE", host = "", admin = "", pass = "")
  11. }
  12. \arguments{
  13. \item{ont}{The ontology to insert}
  14. \item{modi}{The modifiers to insert}
  15. \item{scheme}{The scheme to use for this ontology}
  16. \item{include_code}{Whether to include the code in the label or not}
  17. \item{def_facttablecolumn}{Default value for that column}
  18. \item{def_tablename}{Default value for that column}
  19. \item{def_columnname}{Default value for that column}
  20. \item{def_columndatatype}{Default value for that column}
  21. \item{def_operator}{Default value for that column}
  22. \item{host}{The host to connect to}
  23. \item{admin}{The admin account for the PostgreSQL database}
  24. \item{pass}{the password for the admin account}
  25. }
  26. \description{
  27. Populate an empty ontology table
  28. }
  29. \details{
  30. Populate an ontology table
  31. ont is a dataframe containing at least the c_fullname column, a character vector containing all the leaves of the ontology
  32. with their respective path, in the form
  33. code_level1 label_level1\\code_level2 label_level2\\...\\code_leaf label_leaf
  34. The function rebuilds the folders automatically
  35. modi is a dataframe containing at least the c_fullname column, a character vector containing the modifiers, in the form
  36. code_modi label_modi
  37. The modifiers apply on all the ontology
  38. }