fix_headers.Rd
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
if (FALSE) {
fix_headers()
}