Description Usage Arguments Value Examples
Creates a profile.do that will run before every code chunk. Helpful for reading in the same data sets or setting options
1 | profile_do(dataset, ...)
|
dataset |
Data set to read in, path to .dta. If |
... |
additional Stata code to put in profile.do |
Nothing
1 2 3 4 5 6 | filename = "cars.dta"
haven::write_dta(data = datasets::cars, path = filename, version = 13)
statamd::profile_do(dataset = filename)
readLines("profile.do")
file.remove(filename)
file.remove("profile.do")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.