dd2script | R Documentation |
Convert data dictionary to an R script
dd2script(l, file = "", factorHandle = c("duplicate", "unchanged", "changed"))
l |
data dictionary list |
file |
character string naming the file to print to; defaults to standard output |
factorHandle |
character value of either ‘duplicated’, ‘unchanged’, ‘changed’. Determines how to handle factor variables. |
character vector of R commands, returned invisibly
dd <- script2info(system.file("examples", "ex_script.R", package = "rcmoonpie")) # \sQuote{duplicate} will create new factor variable with name \sQuote{variablename.factor} dd2script(dd) # \sQuote{unchanged} will leave variables as character strings dd2script(dd, factorHandle = 'unchanged') # \sQuote{changed} will replace character string with factor variable dd2script(dd, factorHandle = 'changed')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.