View source: R/mockVocabularySet.R
mockVocabularySet | R Documentation |
This function create specified vocabulary tables to a CDM object. It can either populate the tables with provided data frames or initialize empty tables if no data is provided. This is useful for setting up a testing environment with controlled vocabulary data.
mockVocabularySet(cdm = mockCdmReference(), vocabularySet = "GiBleed")
cdm |
A |
vocabularySet |
A character string that specifies a prefix or a set name used to initialize mock data tables. This allows for customization of the source data or structure names when generating vocabulary tables. |
Returns the modified cdm
object with the provided vocabulary set tables.
library(omock)
# Create a mock CDM reference and populate it with mock vocabulary tables
cdm <- mockCdmReference() |> mockVocabularySet(vocabularySet = "GiBleed")
# View the names of the tables added to the CDM
names(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.