Recent revisions of RGadget introduced the gadgetfile class, which is a fairly flexible S3 class to interact with Gadget input files.
To ensure that data object are read properly, i.e. as data.frame, the following header needs to be inserted to indicate that the following
sections indicate data
; -- data --
; col1 col2 ...
This function attempts to translate older gadget models, i.e. those not developed using Rgadget, to the new format
fix_headers(main.file = "main", path = ".")
name of the main file
location of the gadget model directory
1 2 3 4
## Not run: fix_headers() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.