View source: R/ds2dd_detailed.R
| ds2dd | R Documentation | 
Creates a very basic data dictionary skeleton. Please see 'ds2dd_detailed()' for a more advanced function.
ds2dd(
  ds,
  record.id = "record_id",
  form.name = "basis",
  field.type = "text",
  field.label = NULL,
  include.column.names = FALSE,
  metadata = names(REDCapCAST::redcapcast_meta)
)
| ds | data set | 
| record.id | name or column number of id variable, moved to first row of data dictionary, character of integer. Default is "record_id". | 
| form.name | vector of form names, character string, length 1 or length equal to number of variables. Default is "basis". | 
| field.type | vector of field types, character string, length 1 or length equal to number of variables. Default is "text. | 
| field.label | vector of form names, character string, length 1 or length equal to number of variables. Default is NULL and is then identical to field names. | 
| include.column.names | Flag to give detailed output including new column names for original data set for upload. | 
| metadata | Metadata column names. Default is the included names(REDCapCAST::redcapcast_meta). | 
Migrated from stRoke ds2dd(). Fits better with the functionality of 'REDCapCAST'.
data.frame or list of data.frame and vector
redcapcast_data$record_id <- seq_len(nrow(redcapcast_data))
ds2dd(redcapcast_data, include.column.names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.