gadget.parameters: Gadget parameters

read.gadget.parametersR Documentation

Gadget parameters

Description

read.gadget.parameters reads a gadget parameter file

This is a convenience function that allows the editing of parameter files by variable (switch) names.

Usage

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(s)

Bjarki Thor Elvarsson

Bjarki Þór Elvarsson


gadget-framework/rgadget documentation built on July 20, 2022, 12:16 p.m.