View source: R/readLegacyParamFile.R
ffm_read_legacy_params | R Documentation |
The legacy parameters file format was designed for use with a C++ implementation of the model. It does not conform to any more general format (e.g. json or yaml) and, to be read correctly, relies on implicit assumptions about the relationship between variables. For new parameter sets it is preferable to compose them as tables in R or elsewhere and save them as CSV-format files.
ffm_read_legacy_params(path, raw = FALSE)
path |
The full or relative path to the parameters file. |
raw |
(logical) Whether to return raw parsed data. This can be useful
for diagnosing problems with reading a particular parameter file. It should
be set to |
If raw
is TRUE
, a data frame of parsed data
in raw form (useful for testing).
If raw
is FALSE
(the default), a data frame in a form
suitable for use with ffm_run
.
## Not run:
# Import a legacy format parameter file and save it as a CSV format file
# in standard tabular parameter format.
params <- ffm_read_legacy_params("old_params.txt")
ffm_write_params(params, file = "beautiful_params.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.