gadget.parameters.Rd
read.gadget.parameters
reads a gadget parameter file
This is a convenience function that allows the editing of parameter files by variable (switch) names.
read.gadget.parameters(file = "params.in")
write.gadget.parameters(params, file = "params.out")
init_guess(
dat,
pattern = "",
value = 0,
lower = -999,
upper = 999,
optimise = 0
)
wide_parameters(dat, value = NULL)
a string naming the file to write to
params dataframe
gadget parameters object
name of parameter, can include grep-able wildcards
data.frame update to the parameter matrix (assumes same row count)
new lower bound
new upper bound
should the parameter be optimised
dataframe
a string containing the text of the params file (if desired)
updated data frame with the new parameter values
gadget parameters object