fix_headers | R Documentation |
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 = ".")
main.file |
name of the main file |
path |
location of the gadget model directory |
## 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.