View source: R/signatureFitMultiStepLib.R
fitToJSON | R Documentation |
Exports of the results obtained with the Fit function to JSON. Output adapts based on the options used in the Fit function
fitToJSON(
fitObj,
filename = "export.json",
nindent = 0,
disableFileWrite = FALSE,
blockname = NULL
)
fitObj |
object obtained from the Fit function |
filename |
file name where to save the JSON string |
nindent |
number of tabs of indentation to be used, default=0. This is useful in case one wants to embed the output in a larger JSON document |
disableFileWrite |
if TRUE the JSON lines are simply printed to screen. This option is used when fitToJSON is called from another function like fitMStoJSON, which itself opens a sink() to write to. |
blockname |
if specified, the first line will show the given name as the block name, which is useful if the output is embedded in a larger JSON file |
res <- Fit(catalogues,getOrganSignatures("Breast"))
fitToJSON(res,"export.json")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.