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)

Arguments

file

a string naming the file to write to

params

params dataframe

dat

gadget parameters object

pattern

name of parameter, can include grep-able wildcards

value

data.frame update to the parameter matrix (assumes same row count)

lower

new lower bound

upper

new upper bound

optimise

should the parameter be optimised

Value

dataframe

a string containing the text of the params file (if desired)

updated data frame with the new parameter values

gadget parameters object

Author

Bjarki Thor Elvarsson

Bjarki Þór Elvarsson