create.domain | R Documentation |
Create a domain object from file and mappings information
create.domain("EX")
name |
The name of the domain. |
path |
The path to the domain data. |
filetype |
The type of file, one of: sas7bdat (default), xpt, csv, txt, dat, xls, or xlsx. |
filename |
The name (without directory or extension) of the main domain file. This is defaulted to the name argument. |
premerge.filename |
The name of the premerge file. If the premerge file is a CDISC SDTM supplementary domain (defaulted with has.supp=T) then this filename defaults to 'SUPP'+name (with the appropriate path and extension). |
mappings |
A domain InputMappings object, perhaps loaded from a yaml file, with which to override default settings. |
has.supp |
Indicates if a CDISC SDTM supplementary domain should be configured and searched for. |
... |
Additional overrides for file settings, which are passed to various load routines. For text files these include: sep (comma, semicolon, tab, whitespace); header (T/F); fill (T/F); quote (none, single_quote, double_quote); comment.char; skip. For Excel files: sheet (name or number of the sheet to read); range (the cell range to read). To reshape a text or Excel file, provide the id_cols as a comma separated single string (it will be parsed later) of column names to keep as the unique identifiers for the rows. Columns not in the list will be converted to name/value pairs in new columns. |
A doman object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.